[librsvg: 12/13] clippy: use a slice instead of passing a reference to a Vec




commit 5b0efc45a29105488924d3f7af4896ccae0033f3
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Aug 4 20:14:07 2022 -0500

    clippy: use a slice instead of passing a reference to a Vec
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/724>

 src/text.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/text.rs b/src/text.rs
index 842010166..a635b71b2 100644
--- a/src/text.rs
+++ b/src/text.rs
@@ -657,7 +657,7 @@ impl Chars {
         &self,
         node: &Node,
         values: Rc<ComputedValues>,
-        chunks: &mut Vec<Chunk>,
+        chunks: &mut [Chunk],
         dx: f64,
         dy: f64,
         depth: usize,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]