about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml1
-rw-r--r--crates/hir-ty/src/layout/tests/closure.rs1
-rw-r--r--crates/ide/src/moniker.rs6
3 files changed, 2 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 494eb18c808..b927c78d9cd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -175,7 +175,6 @@ field_reassign_with_default = "allow"
 forget_non_drop = "allow"
 format_collect = "allow"
 large_enum_variant = "allow"
-match_single_binding = "allow"
 needless_borrow = "allow"
 needless_doctest_main = "allow"
 needless_lifetimes = "allow"
diff --git a/crates/hir-ty/src/layout/tests/closure.rs b/crates/hir-ty/src/layout/tests/closure.rs
index d32ef217b9e..6c76c6fed06 100644
--- a/crates/hir-ty/src/layout/tests/closure.rs
+++ b/crates/hir-ty/src/layout/tests/closure.rs
@@ -1,3 +1,4 @@
+#![allow(clippy::match_single_binding)]
 #![allow(clippy::no_effect)]
 
 use crate::size_and_align_expr;
diff --git a/crates/ide/src/moniker.rs b/crates/ide/src/moniker.rs
index 486329daded..c49d75b2f81 100644
--- a/crates/ide/src/moniker.rs
+++ b/crates/ide/src/moniker.rs
@@ -95,11 +95,7 @@ pub struct MonikerIdentifier {
 
 impl ToString for MonikerIdentifier {
     fn to_string(&self) -> String {
-        match self {
-            MonikerIdentifier { description, crate_name } => {
-                format!("{}::{}", crate_name, description.iter().map(|x| &x.name).join("::"))
-            }
-        }
+        format!("{}::{}", self.crate_name, self.description.iter().map(|x| &x.name).join("::"))
     }
 }