[librsvg: 5/7] AspectRatio.parse: don't expect_exhausted
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 5/7] AspectRatio.parse: don't expect_exhausted
- Date: Fri, 4 Sep 2020 03:23:42 +0000 (UTC)
commit f3255c24e16b7fcf6dec4abe1a5d6214e1f45e92
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Sep 3 21:18:33 2020 -0500
AspectRatio.parse: don't expect_exhausted
rsvg_internals/src/aspect_ratio.rs | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/rsvg_internals/src/aspect_ratio.rs b/rsvg_internals/src/aspect_ratio.rs
index be06a8a4..67cb3e18 100644
--- a/rsvg_internals/src/aspect_ratio.rs
+++ b/rsvg_internals/src/aspect_ratio.rs
@@ -242,8 +242,6 @@ impl Parse for AspectRatio {
let fit = parser.try_parse(|p| parse_fit_mode(p)).unwrap_or_default();
- parser.expect_exhausted()?;
-
let align = align_xy.map(|(x, y)| Align { x, y, fit });
Ok(AspectRatio { defer, align })
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]