perf(all): replace &str.to_string() with .to_owned()
This commit is contained in:
@@ -133,9 +133,9 @@ macro_rules! mock_connector (
|
||||
let key = format!("{}://{}", scheme, host);
|
||||
// ignore port for now
|
||||
match map.get(&*key) {
|
||||
Some(res) => Ok($crate::mock::MockStream {
|
||||
Some(&res) => Ok($crate::mock::MockStream {
|
||||
write: vec![],
|
||||
read: Cursor::new(res.to_string().into_bytes()),
|
||||
read: Cursor::new(res.to_owned().into_bytes()),
|
||||
}),
|
||||
None => panic!("{:?} doesn't know url {}", stringify!($name), key)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user