mirror of https://github.com/spikecodes/libreddit
Update src/server.rs
Co-authored-by: Matthew E <matt@matthew.science>
This commit is contained in:
parent
5dd6e0aad4
commit
8b5bbce191
|
@ -67,14 +67,11 @@ impl CompressionType {
|
||||||
|
|
||||||
impl ToString for CompressionType {
|
impl ToString for CompressionType {
|
||||||
fn to_string(&self) -> String {
|
fn to_string(&self) -> String {
|
||||||
let s: &str = match *self {
|
match self {
|
||||||
CompressionType::Gzip => "gzip",
|
CompressionType::Gzip => "gzip".to_string(),
|
||||||
CompressionType::Brotli => "br",
|
CompressionType::Brotli => "br".to_string(),
|
||||||
|
_ => String::new(),
|
||||||
_ => "",
|
}
|
||||||
};
|
|
||||||
|
|
||||||
s.to_string()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue