[librsvg: 4/7] NumberOptionalNumber.parse: don't expect_exhausted
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 4/7] NumberOptionalNumber.parse: don't expect_exhausted
- Date: Fri, 4 Sep 2020 03:23:42 +0000 (UTC)
commit bf1e8c804bb1e1bfbeabe742e346d1827d8813a5
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Sep 3 21:12:02 2020 -0500
NumberOptionalNumber.parse: don't expect_exhausted
rsvg_internals/src/parsers.rs | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/rsvg_internals/src/parsers.rs b/rsvg_internals/src/parsers.rs
index 7d4577f8..886bc214 100644
--- a/rsvg_internals/src/parsers.rs
+++ b/rsvg_internals/src/parsers.rs
@@ -103,7 +103,6 @@ impl<T: Parse + Copy> Parse for NumberOptionalNumber<T> {
if !parser.is_exhausted() {
optional_comma(parser);
let y = Parse::parse(parser)?;
- parser.expect_exhausted()?;
Ok(NumberOptionalNumber(x, y))
} else {
Ok(NumberOptionalNumber(x, x))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]