perf(all): replace &str.to_string() with .to_owned()
This commit is contained in:
@@ -45,7 +45,7 @@ impl str::FromStr for Encoding {
|
||||
"gzip" => Ok(Gzip),
|
||||
"compress" => Ok(Compress),
|
||||
"identity" => Ok(Identity),
|
||||
_ => Ok(EncodingExt(s.to_string()))
|
||||
_ => Ok(EncodingExt(s.to_owned()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user