[librsvg/librsvg-2.46] aspect_ratio: use unwrap_or_default



commit c0ed08b1e2bfcc7720509d7f2dee174e6c7cdc76
Author: Paolo Borelli <pborelli gnome org>
Date:   Sun Oct 13 12:46:08 2019 +0200

    aspect_ratio: use unwrap_or_default

 rsvg_internals/src/aspect_ratio.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/aspect_ratio.rs b/rsvg_internals/src/aspect_ratio.rs
index 32294b35..d4475aef 100644
--- a/rsvg_internals/src/aspect_ratio.rs
+++ b/rsvg_internals/src/aspect_ratio.rs
@@ -238,7 +238,7 @@ impl Parse for AspectRatio {
                     .map_err(|_| ValueErrorKind::Parse(ParseError::new("expected identifier")))
                     .and_then(|ident| parse_fit_mode(ident))
             })
-            .unwrap_or(FitMode::default());
+            .unwrap_or_default();
 
         parser
             .expect_exhausted()


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