Remove redundant .clone()s

This commit is contained in:
Shotaro Yamada 2018-12-11 10:43:51 +09:00
parent eeaca0b26d
commit c44a2febe6
19 changed files with 31 additions and 35 deletions

View file

@ -552,7 +552,7 @@ impl Actor for PageStyleActor {
m.insert("bottom".to_owned(), auto.clone());
}
if autoMargins.left {
m.insert("left".to_owned(), auto.clone());
m.insert("left".to_owned(), auto);
}
serde_json::value::Value::Object(m)
} else {

View file

@ -358,7 +358,7 @@ impl NetworkEventActor {
let status_text = String::from_utf8_lossy(st).into_owned();
(StatusCode::from_u16(s).unwrap(), status_text)
});
self.response.body = response.body.clone();
self.response.body = response.body;
}
pub fn event_actor(&self) -> EventActor {