mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
shorter arms
This commit is contained in:
parent
4ab7c4d99b
commit
a1c246b1c4
1 changed files with 3 additions and 3 deletions
|
@ -1451,7 +1451,7 @@ fn make_body(
|
||||||
syntax::NodeOrToken::Node(n) => syntax::NodeOrToken::Node(
|
syntax::NodeOrToken::Node(n) => syntax::NodeOrToken::Node(
|
||||||
rewrite_body_segment(ctx, &fun.params, &handler, &n),
|
rewrite_body_segment(ctx, &fun.params, &handler, &n),
|
||||||
),
|
),
|
||||||
syntax::NodeOrToken::Token(_) => it,
|
_ => it,
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
@ -1462,7 +1462,7 @@ fn make_body(
|
||||||
}
|
}
|
||||||
_ => None,
|
_ => None,
|
||||||
},
|
},
|
||||||
None => None,
|
_ => None,
|
||||||
};
|
};
|
||||||
|
|
||||||
match tail_expr {
|
match tail_expr {
|
||||||
|
@ -1492,7 +1492,7 @@ fn make_body(
|
||||||
let ast_node = indented.syntax().clone_subtree();
|
let ast_node = indented.syntax().clone_subtree();
|
||||||
syntax::NodeOrToken::Node(ast_node)
|
syntax::NodeOrToken::Node(ast_node)
|
||||||
}
|
}
|
||||||
None => node_or_token,
|
_ => node_or_token,
|
||||||
},
|
},
|
||||||
_ => node_or_token,
|
_ => node_or_token,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue