perf(all): replace &str.to_string() with .to_owned()
This commit is contained in:
@@ -58,7 +58,7 @@ impl FromStr for RangeUnit {
|
||||
"bytes" => Ok(RangeUnit::Bytes),
|
||||
"none" => Ok(RangeUnit::None),
|
||||
// FIXME: Check if s is really a Token
|
||||
_ => Ok(RangeUnit::Unregistered(s.to_string())),
|
||||
_ => Ok(RangeUnit::Unregistered(s.to_owned())),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user