Format with rustfmt 0.99.5-nightly
diff --git a/src/lookahead.rs b/src/lookahead.rs
index be38a71..7320d02 100644
--- a/src/lookahead.rs
+++ b/src/lookahead.rs
@@ -114,11 +114,13 @@
pub fn error(self) -> Error {
let comparisons = self.comparisons.borrow();
match comparisons.len() {
- 0 => if self.cursor.eof() {
- Error::new(self.scope, "unexpected end of input")
- } else {
- Error::new(self.cursor.span(), "unexpected token")
- },
+ 0 => {
+ if self.cursor.eof() {
+ Error::new(self.scope, "unexpected end of input")
+ } else {
+ Error::new(self.cursor.span(), "unexpected token")
+ }
+ }
1 => {
let message = format!("expected {}", comparisons[0]);
error::new_at(self.scope, self.cursor, message)