mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Remove redundant .clone()
s
This commit is contained in:
parent
eeaca0b26d
commit
c44a2febe6
19 changed files with 31 additions and 35 deletions
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue