[librsvg/librsvg-2.50] Remove superfluous conversion
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [librsvg/librsvg-2.50] Remove superfluous conversion
- Date: Fri,  2 Oct 2020 19:24:36 +0000 (UTC)
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]