Format with rustfmt 0.99.2
diff --git a/src/lit.rs b/src/lit.rs
index fc7284e..51ade4b 100644
--- a/src/lit.rs
+++ b/src/lit.rs
@@ -436,26 +436,24 @@
impl Parse for Lit {
fn parse(input: ParseStream) -> Result<Self> {
- input.step_cursor(|cursor| {
- match cursor.literal() {
- Some((lit, rest)) => Ok((Lit::new(lit), rest)),
- _ => match cursor.ident() {
- Some((ident, rest)) => Ok((
- Lit::Bool(LitBool {
- value: if ident == "true" {
- true
- } else if ident == "false" {
- false
- } else {
- return Err(cursor.error("expected literal"));
- },
- span: ident.span(),
- }),
- rest,
- )),
- _ => Err(cursor.error("expected literal"))
- },
- }
+ input.step_cursor(|cursor| match cursor.literal() {
+ Some((lit, rest)) => Ok((Lit::new(lit), rest)),
+ _ => match cursor.ident() {
+ Some((ident, rest)) => Ok((
+ Lit::Bool(LitBool {
+ value: if ident == "true" {
+ true
+ } else if ident == "false" {
+ false
+ } else {
+ return Err(cursor.error("expected literal"));
+ },
+ span: ident.span(),
+ }),
+ rest,
+ )),
+ _ => Err(cursor.error("expected literal")),
+ },
})
}
}