[librsvg/fix-clippy-warnings: 2/2] Remove redundant clone
- From: Sven Neumann <sneumann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/fix-clippy-warnings: 2/2] Remove redundant clone
- Date: Thu, 8 Oct 2020 06:37:29 +0000 (UTC)
commit 392bba52f64fc6249e8d3fe0dc515273f9285a9c
Author: Sven Neumann <sven svenfoo org>
Date: Thu Oct 8 08:36:34 2020 +0200
Remove redundant clone
rsvg_internals/src/drawing_ctx.rs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/rsvg_internals/src/drawing_ctx.rs b/rsvg_internals/src/drawing_ctx.rs
index 13e631a3..f6436995 100644
--- a/rsvg_internals/src/drawing_ctx.rs
+++ b/rsvg_internals/src/drawing_ctx.rs
@@ -170,9 +170,7 @@ pub fn draw_tree(
acquired_nodes: &mut AcquiredNodes,
) -> Result<BoundingBox, RenderingError> {
let (drawsub_stack, node) = match mode {
- DrawingMode::LimitToStack { node, root } => {
- (node.ancestors().map(|n| n.clone()).collect(), root)
- }
+ DrawingMode::LimitToStack { node, root } => (node.ancestors().collect(), root),
DrawingMode::OnlyNode(node) => (Vec::new(), node),
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]