[librsvg/librsvg-2.50] Remove superfluous conversion



commit fe5373d22cdfb326bdbc34c460dfdeb34e0041f9
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Jun 19 19:02:15 2020 -0500

    Remove superfluous conversion

 rsvg_internals/src/structure.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/structure.rs b/rsvg_internals/src/structure.rs
index 97b0cd5f..2ab459a6 100644
--- a/rsvg_internals/src/structure.rs
+++ b/rsvg_internals/src/structure.rs
@@ -144,8 +144,8 @@ impl Svg {
 
     pub fn get_intrinsic_dimensions(&self) -> IntrinsicDimensions {
         IntrinsicDimensions {
-            width: self.w.map(Into::into),
-            height: self.h.map(Into::into),
+            width: self.w,
+            height: self.h,
             vbox: self.vbox,
         }
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]