Format with rustfmt 0.99.4
diff --git a/src/keyword.rs b/src/keyword.rs
index 019ada9..fbeaa56 100644
--- a/src/keyword.rs
+++ b/src/keyword.rs
@@ -105,7 +105,9 @@
#[doc(hidden)]
#[allow(non_snake_case)]
- pub fn $ident<__S: $crate::export::IntoSpans<[$crate::export::Span; 1]>>(span: __S) -> $ident {
+ pub fn $ident<__S: $crate::export::IntoSpans<[$crate::export::Span; 1]>>(
+ span: __S,
+ ) -> $ident {
$ident {
span: $crate::export::IntoSpans::into_spans(span)[0],
}
@@ -123,7 +125,7 @@
impl_to_tokens_for_custom_keyword!($ident);
impl_clone_for_custom_keyword!($ident);
impl_extra_traits_for_custom_keyword!($ident);
- }
+ };
}
// Not public API.
@@ -151,7 +153,11 @@
return $crate::export::Ok(($ident { span: ident.span() }, rest));
}
}
- $crate::export::Err(cursor.error(concat!("expected `", stringify!($ident), "`")))
+ $crate::export::Err(cursor.error(concat!(
+ "expected `",
+ stringify!($ident),
+ "`"
+ )))
})
}
}
diff --git a/src/token.rs b/src/token.rs
index b1c83d2..b672921 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -494,7 +494,7 @@
return ident == "_";
}
if let Some((punct, _rest)) = cursor.punct() {
- return punct.as_char() == '_'
+ return punct.as_char() == '_';
}
false
}