diff options
author | Federico Mena Quintero <federico@gnome.org> | 2023-02-08 18:27:35 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2023-02-08 18:27:48 -0600 |
commit | bae7fd10425225e868f6ccaa73d479078703ecfb (patch) | |
tree | deb095e82657d829c9e3ccf1068ea01da4598611 | |
parent | 839c7fae723674fc7ae9347b2ac8bd62616b61d6 (diff) | |
download | librsvg-bae7fd10425225e868f6ccaa73d479078703ecfb.tar.gz |
clippy: remove unnecessary references
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/792>
-rw-r--r-- | src/bin/rsvg-bench.rs | 2 | ||||
-rw-r--r-- | src/url_resolver.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/rsvg-bench.rs b/src/bin/rsvg-bench.rs index e9e8a96b..f92c8991 100644 --- a/src/bin/rsvg-bench.rs +++ b/src/bin/rsvg-bench.rs @@ -166,7 +166,7 @@ fn run(opt: &Opt) -> Result<()> { println!("Processing files!"); for path in &opt.inputs { - process_path(opt, &path)?; + process_path(opt, path)?; } Ok(()) diff --git a/src/url_resolver.rs b/src/url_resolver.rs index 4ec9c07c..d62c4483 100644 --- a/src/url_resolver.rs +++ b/src/url_resolver.rs @@ -80,7 +80,7 @@ impl UrlResolver { let base_parent = base_parent.unwrap(); let url_canon = - canonicalize(&url_path).map_err(|_| AllowedUrlError::CanonicalizationError)?; + canonicalize(url_path).map_err(|_| AllowedUrlError::CanonicalizationError)?; let parent_canon = canonicalize(base_parent).map_err(|_| AllowedUrlError::CanonicalizationError)?; |