[librsvg] cargo-clippy: Remove redundant references



commit 444fd034f87f25e3e6fb79003f0ef942928e07b4
Author: Federico Mena Quintero <federico gnome org>
Date:   Thu Feb 22 13:16:19 2018 -0600

    cargo-clippy: Remove redundant references

 rust/src/property_bag.rs | 2 +-
 rust/src/shapes.rs       | 2 +-
 rust/src/structure.rs    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rust/src/property_bag.rs b/rust/src/property_bag.rs
index 2866a552..cc296226 100644
--- a/rust/src/property_bag.rs
+++ b/rust/src/property_bag.rs
@@ -96,7 +96,7 @@ impl<'a> PropertyBag<'a> {
     pub fn to_owned(&self) -> OwnedPropertyBag {
         let mut array = Vec::<(CString, Attribute, CString)>::new();
 
-        for &(ref k, a, ref v) in &self.0 {
+        for &(k, a, v) in &self.0 {
             array.push(((*k).to_owned(), a, (*v).to_owned()));
         }
 
diff --git a/rust/src/shapes.rs b/rust/src/shapes.rs
index c0b850b1..9358ee0b 100644
--- a/rust/src/shapes.rs
+++ b/rust/src/shapes.rs
@@ -93,7 +93,7 @@ impl NodeTrait for NodePath {
             if attr == Attribute::D {
                 let mut builder = RsvgPathBuilder::new ();
 
-                if path_parser::parse_path_into_builder (&value, &mut builder).is_err() {
+                if path_parser::parse_path_into_builder (value, &mut builder).is_err() {
                     // FIXME: we don't propagate errors upstream, but creating a partial
                     // path is OK per the spec
                 }
diff --git a/rust/src/structure.rs b/rust/src/structure.rs
index cc464102..4507a908 100644
--- a/rust/src/structure.rs
+++ b/rust/src/structure.rs
@@ -466,7 +466,7 @@ pub extern fn rsvg_node_svg_apply_atts (raw_node: *const RsvgNode, handle: *cons
 
     node.with_impl (|svg: &NodeSvg| {
         if let Some(owned_pbag) = svg.pbag.borrow().as_ref() {
-            let pbag = PropertyBag::from_owned(&owned_pbag);
+            let pbag = PropertyBag::from_owned(owned_pbag);
 
             let mut class = None;
             let mut id = None;


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