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 {
|
||||
fn to_string(&self) -> String {
|
||||
let s: &str = match *self {
|
||||
CompressionType::Gzip => "gzip",
|
||||
CompressionType::Brotli => "br",
|
||||
|
||||
_ => "",
|
||||
};
|
||||
|
||||
s.to_string()
|
||||
match self {
|
||||
CompressionType::Gzip => "gzip".to_string(),
|
||||
CompressionType::Brotli => "br".to_string(),
|
||||
_ => String::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue