We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a96f0aa commit 15f7300Copy full SHA for 15f7300
crates/hir-def/src/body/lower.rs
@@ -80,8 +80,7 @@ pub(super) fn lower(
80
params: Option<ast::ParamList>,
81
body: Option<ast::Expr>,
82
) -> (Body, BodySourceMap) {
83
- let collector = ExprCollector::new(db, expander);
84
- collector.collect(params, body)
+ ExprCollector::new(db, expander).collect(params, body)
85
}
86
87
struct ExprCollector<'a> {
@@ -190,8 +189,7 @@ impl<'a> ExprCollector<'a> {
190
189
191
192
fn collect_expr(&mut self, expr: ast::Expr) -> ExprId {
193
- let expr_id = self.maybe_collect_expr(expr).unwrap_or_else(|| self.missing_expr());
194
- expr_id
+ self.maybe_collect_expr(expr).unwrap_or_else(|| self.missing_expr())
195
196
197
/// Returns `None` if and only if the expression is `#[cfg]`d out.
0 commit comments