diff --git a/Cargo.toml b/Cargo.toml index 75948a9be60..dc339f625ea 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 4267bd4efae..a92b7efe257 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() })