[librsvg: 4/5] Remove useless conversion to the same type
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 4/5] Remove useless conversion to the same type
- Date: Tue, 25 Aug 2020 17:35:28 +0000 (UTC)
commit 318963da88d59645d701e73b37e66746b51651ed
Author: Sven Neumann <sven svenfoo org>
Date: Tue Aug 25 08:21:30 2020 +0200
Remove useless conversion to the same type
See https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
librsvg_crate/src/lib.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/librsvg_crate/src/lib.rs b/librsvg_crate/src/lib.rs
index 70f21efd..1313f383 100644
--- a/librsvg_crate/src/lib.rs
+++ b/librsvg_crate/src/lib.rs
@@ -515,7 +515,7 @@ impl<'a> CairoRenderer<'a> {
self.handle
.0
.get_geometry_for_layer(id, viewport, self.dpi, false)
- .map(|(i, l)| (i.into(), l.into()))
+ .map(|(i, l)| (i, l))
}
/// Renders a single SVG element in the same place as for a whole SVG document
@@ -585,7 +585,7 @@ impl<'a> CairoRenderer<'a> {
self.handle
.0
.get_geometry_for_element(id, self.dpi, false)
- .map(|(i, l)| (i.into(), l.into()))
+ .map(|(i, l)| (i, l))
}
/// Renders a single SVG element to a given viewport
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]