shorter arms

This commit is contained in:
Jeroen Vannevel 2022-01-22 11:51:56 +00:00
parent 4ab7c4d99b
commit a1c246b1c4

View File

@ -1451,7 +1451,7 @@ fn make_body(
syntax::NodeOrToken::Node(n) => syntax::NodeOrToken::Node(
rewrite_body_segment(ctx, &fun.params, &handler, &n),
),
syntax::NodeOrToken::Token(_) => it,
_ => it,
})
.collect();
@ -1462,7 +1462,7 @@ fn make_body(
}
_ => None,
},
None => None,
_ => None,
};
match tail_expr {
@ -1492,7 +1492,7 @@ fn make_body(
let ast_node = indented.syntax().clone_subtree();
syntax::NodeOrToken::Node(ast_node)
}
None => node_or_token,
_ => node_or_token,
},
_ => node_or_token,
})