Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit d351cb8

Browse files
committed
match_single_binding
1 parent add40c8 commit d351cb8

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ field_reassign_with_default = "allow"
175175
forget_non_drop = "allow"
176176
format_collect = "allow"
177177
large_enum_variant = "allow"
178-
match_single_binding = "allow"
179178
needless_borrow = "allow"
180179
needless_doctest_main = "allow"
181180
needless_lifetimes = "allow"

crates/hir-ty/src/layout/tests/closure.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::match_single_binding)]
12
#![allow(clippy::no_effect)]
23

34
use crate::size_and_align_expr;

crates/ide/src/moniker.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,7 @@ pub struct MonikerIdentifier {
9595

9696
impl ToString for MonikerIdentifier {
9797
fn to_string(&self) -> String {
98-
match self {
99-
MonikerIdentifier { description, crate_name } => {
100-
format!("{}::{}", crate_name, description.iter().map(|x| &x.name).join("::"))
101-
}
102-
}
98+
format!("{}::{}", self.crate_name, self.description.iter().map(|x| &x.name).join("::"))
10399
}
104100
}
105101

0 commit comments

Comments
 (0)