Skip to content

Commit 6a2a603

Browse files
committed
let_and_return
1 parent d8ad4af commit 6a2a603

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ from_str_radix_10 = "allow"
181181
get_first = "allow"
182182
if_same_then_else = "allow"
183183
large_enum_variant = "allow"
184-
let_and_return = "allow"
185184
map_clone = "allow"
186185
match_like_matches_macro = "allow"
187186
match_single_binding = "allow"

crates/hir/src/semantics.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,9 +1008,7 @@ impl<'db> SemanticsImpl<'db> {
10081008
// Update `source_ty` for the next adjustment
10091009
let source = mem::replace(&mut source_ty, target.clone());
10101010

1011-
let adjustment = Adjustment { source, target, kind };
1012-
1013-
adjustment
1011+
Adjustment { source, target, kind }
10141012
})
10151013
.collect()
10161014
})

0 commit comments

Comments
 (0)