[librsvg/librsvg-2.42: 15/17] clippy: remove 'redundant_closure'
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.42: 15/17] clippy: remove 'redundant_closure'
- Date: Fri, 2 Mar 2018 20:34:31 +0000 (UTC)
commit 2d80b742243e65f4e145197caf1fa17bee0fc14a
Author: Jordan Petridis <jordanpetridis protonmail com>
Date: Thu Mar 1 14:32:27 2018 +0200
clippy: remove 'redundant_closure'
rsvg_internals/src/paint_server.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/paint_server.rs b/rsvg_internals/src/paint_server.rs
index 55683512..58cc9fe4 100644
--- a/rsvg_internals/src/paint_server.rs
+++ b/rsvg_internals/src/paint_server.rs
@@ -93,7 +93,7 @@ impl PaintServer {
input
.try(|i| cssparser::Color::parse(i))
.ok()
- .map(|i| Color::from(i))
+ .map(Color::from)
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]