cargo-clippy: Remove redundant references

parent aafcfdb3
......@@ -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()));
}
......
......@@ -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
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment