[librsvg] image: fix clippy warning
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] image: fix clippy warning
- Date: Sat, 18 Apr 2020 09:36:34 +0000 (UTC)
commit 373cf299c31c87239eab6b23b0c2371412f31730
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Apr 18 10:45:29 2020 +0200
image: fix clippy warning
rsvg_internals/src/filters/image.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/filters/image.rs b/rsvg_internals/src/filters/image.rs
index 88968030..586388de 100644
--- a/rsvg_internals/src/filters/image.rs
+++ b/rsvg_internals/src/filters/image.rs
@@ -121,7 +121,7 @@ impl SetAttributes for FeImage {
// "path" is used by some older Adobe Illustrator versions
expanded_name!(xlink "href") | expanded_name!("", "path") => {
let href = Href::parse(value)
- .map_err(|e| ValueErrorKind::from(e))
+ .map_err(ValueErrorKind::from)
.attribute(attr)?;
self.href = Some(href);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]