File tree Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Expand file tree Collapse file tree 3 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,6 @@ field_reassign_with_default = "allow"
175
175
forget_non_drop = " allow"
176
176
format_collect = " allow"
177
177
large_enum_variant = " allow"
178
- match_single_binding = " allow"
179
178
needless_borrow = " allow"
180
179
needless_doctest_main = " allow"
181
180
needless_lifetimes = " allow"
Original file line number Diff line number Diff line change
1
+ #![ allow( clippy:: match_single_binding) ]
1
2
#![ allow( clippy:: no_effect) ]
2
3
3
4
use crate :: size_and_align_expr;
Original file line number Diff line number Diff line change @@ -95,11 +95,7 @@ pub struct MonikerIdentifier {
95
95
96
96
impl ToString for MonikerIdentifier {
97
97
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( "::" ) )
103
99
}
104
100
}
105
101
You can’t perform that action at this time.
0 commit comments