commit | 1fc4e496fa38f7068a51e5cbdd1fc669b541348d | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Nov 11 22:17:22 2017 -0800 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Nov 11 22:17:22 2017 -0800 |
tree | 43c561c496db89850a98e3497318d7878457e428 | |
parent | 8fc75a478e3e6c0b3606c1320f2b60477954eca2 [diff] [blame] |
Return () instead of "" in input_end!()
diff --git a/synom/src/lib.rs b/synom/src/lib.rs index 9b5fafb..06a0f88 100644 --- a/synom/src/lib.rs +++ b/synom/src/lib.rs
@@ -830,9 +830,9 @@ // Not a public API #[doc(hidden)] -pub fn input_end(input: Cursor) -> PResult<'static, &'static str> { +pub fn input_end(input: Cursor) -> PResult<'static, ()> { if input.eof() { - Ok((Cursor::empty(), "")) + Ok((Cursor::empty(), ())) } else { parse_error() }