chore: Fix new clippy lints about cloning

This commit is contained in:
Nathan Adams 2020-05-09 16:35:46 +02:00 committed by Mike Welsh
parent e365f48fe2
commit bac99368be
2 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@ impl<'gc> DisplayPropertyMap<'gc> {
set: Option<DisplaySetter<'gc>>,
) {
let prop = DisplayProperty { get, set };
self.0.insert(name.to_string(), prop.clone(), false);
self.0.insert(name.to_string(), prop, false);
}
}

View File

@ -176,7 +176,7 @@ impl WebCanvasRenderBackend {
.map_err(|_| "Couldn't make SVG feColorMatrix element")?;
filter
.append_child(&color_matrix.clone())
.append_child(&color_matrix)
.map_err(|_| "append_child failed")?;
svg.append_child(&filter)