From 6a2a603a8c57c78fabfc528ad06e60d003ed1941 Mon Sep 17 00:00:00 2001 From: Johann Hemmann Date: Fri, 19 Jan 2024 14:08:05 +0100 Subject: [PATCH] let_and_return --- Cargo.toml | 1 - crates/hir/src/semantics.rs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) 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() })