summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2023-02-08 18:27:35 -0600
committerFederico Mena Quintero <federico@gnome.org>2023-02-08 18:27:48 -0600
commitbae7fd10425225e868f6ccaa73d479078703ecfb (patch)
treedeb095e82657d829c9e3ccf1068ea01da4598611
parent839c7fae723674fc7ae9347b2ac8bd62616b61d6 (diff)
downloadlibrsvg-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.rs2
-rw-r--r--src/url_resolver.rs2
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)?;