[librsvg] image: small cleanup



commit c275b79ebe29f07a9b68692d42dabdc3b130c098
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Nov 24 15:20:52 2019 +0100

    image: small cleanup

 rsvg_internals/src/image.rs | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/rsvg_internals/src/image.rs b/rsvg_internals/src/image.rs
index 7c5972d3..59d1914d 100644
--- a/rsvg_internals/src/image.rs
+++ b/rsvg_internals/src/image.rs
@@ -99,14 +99,12 @@ impl NodeTrait for Image {
 
             // The bounding box for <image> is decided by the values of x, y, w, h and not by
             // the final computed image bounds.
-            let bbox = dc.empty_bbox().with_rect(Some(
-                cairo::Rectangle {
-                    x,
-                    y,
-                    width: w,
-                    height: h,
-                },
-            ));
+            let bbox = dc.empty_bbox().with_rect(Some(cairo::Rectangle {
+                x,
+                y,
+                width: w,
+                height: h,
+            }));
 
             dc.with_saved_cr(&mut |dc| {
                 let cr = dc.get_cairo_context();


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