[librsvg: 8/28] path_parser: whitespace(): make this not return an error if we are at EOF
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 8/28] path_parser: whitespace(): make this not return an error if we are at EOF
- Date: Tue, 23 Jan 2018 17:59:54 +0000 (UTC)
commit d9fe094f89b1130664090c7b6e022b2984edc9be
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jan 23 09:47:18 2018 -0600
path_parser: whitespace(): make this not return an error if we are at EOF
rust/src/path_parser.rs | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/rust/src/path_parser.rs b/rust/src/path_parser.rs
index 09996d9..9fb9db8 100644
--- a/rust/src/path_parser.rs
+++ b/rust/src/path_parser.rs
@@ -130,13 +130,10 @@ impl<'b> PathParser<'b> {
break;
}
}
-
}
-
- return Ok(());
- } else {
- Err(self.error(ErrorKind::UnexpectedEof))
}
+
+ Ok(())
}
fn optional_whitespace (&mut self) -> Result<(), ParseError> {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]