Clean up lines that do not start with a multiple of 4 spaces
rg '^( )* ? ?\S' src
diff --git a/src/expr.rs b/src/expr.rs
index aa4896b..6b7e07b 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -1779,7 +1779,8 @@
}
named!(and_call -> (token::Paren, Punctuated<Expr, Token![,]>),
- parens!(Punctuated::parse_terminated));
+ parens!(Punctuated::parse_terminated)
+ );
#[cfg(feature = "full")]
named!(and_method_call -> ExprMethodCall, do_parse!(
@@ -2106,11 +2107,13 @@
arrow: punct!(->) >>
ty: syn!(Type) >>
body: syn!(Block) >>
- (ReturnType::Type(arrow, Box::new(ty)),
- Expr::Block(ExprBlock {
- attrs: Vec::new(),
- block: body,
- }))
+ (
+ ReturnType::Type(arrow, Box::new(ty)),
+ Expr::Block(ExprBlock {
+ attrs: Vec::new(),
+ block: body,
+ },
+ ))
)
|
map!(ambiguous_expr!(allow_struct), |e| (ReturnType::Default, e))
diff --git a/src/item.rs b/src/item.rs
index 4b086ae..5b722be 100644
--- a/src/item.rs
+++ b/src/item.rs
@@ -1322,10 +1322,10 @@
inputs: parens!(Punctuated::parse_terminated) >>
ret: syn!(ReturnType) >>
where_clause: option!(syn!(WhereClause)) >>
- body: option!(braces!(
- tuple!(many0!(Attribute::parse_inner),
- call!(Block::parse_within))
- )) >>
+ body: option!(braces!(tuple!(
+ many0!(Attribute::parse_inner),
+ call!(Block::parse_within),
+ ))) >>
semi: cond!(body.is_none(), punct!(;)) >>
({
let (inner_attrs, stmts) = match body {
diff --git a/src/lifetime.rs b/src/lifetime.rs
index 998f381..5ca876f 100644
--- a/src/lifetime.rs
+++ b/src/lifetime.rs
@@ -39,8 +39,7 @@
pub fn new(s: &str, span: Span) -> Self {
if !s.starts_with('\'') {
panic!(
- "lifetime name must start with apostrophe as in \"'a\", \
- got {:?}",
+ "lifetime name must start with apostrophe as in \"'a\", got {:?}",
s
);
}