Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--Cargo.toml1
-rw-r--r--crates/hir/src/semantics.rs4
2 files changed, 1 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 75948a9be6..dc339f625e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -181,7 +181,6 @@ from_str_radix_10 = "allow"
get_first = "allow"
if_same_then_else = "allow"
large_enum_variant = "allow"
-let_and_return = "allow"
map_clone = "allow"
match_like_matches_macro = "allow"
match_single_binding = "allow"
diff --git a/crates/hir/src/semantics.rs b/crates/hir/src/semantics.rs
index 4267bd4efa..a92b7efe25 100644
--- a/crates/hir/src/semantics.rs
+++ b/crates/hir/src/semantics.rs
@@ -1008,9 +1008,7 @@ impl<'db> SemanticsImpl<'db> {
// Update `source_ty` for the next adjustment
let source = mem::replace(&mut source_ty, target.clone());
- let adjustment = Adjustment { source, target, kind };
-
- adjustment
+ Adjustment { source, target, kind }
})
.collect()
})