mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
match_single_binding
This commit is contained in:
parent
add40c8660
commit
d351cb8dfb
3 changed files with 2 additions and 6 deletions
|
@ -175,7 +175,6 @@ field_reassign_with_default = "allow"
|
||||||
forget_non_drop = "allow"
|
forget_non_drop = "allow"
|
||||||
format_collect = "allow"
|
format_collect = "allow"
|
||||||
large_enum_variant = "allow"
|
large_enum_variant = "allow"
|
||||||
match_single_binding = "allow"
|
|
||||||
needless_borrow = "allow"
|
needless_borrow = "allow"
|
||||||
needless_doctest_main = "allow"
|
needless_doctest_main = "allow"
|
||||||
needless_lifetimes = "allow"
|
needless_lifetimes = "allow"
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#![allow(clippy::match_single_binding)]
|
||||||
#![allow(clippy::no_effect)]
|
#![allow(clippy::no_effect)]
|
||||||
|
|
||||||
use crate::size_and_align_expr;
|
use crate::size_and_align_expr;
|
||||||
|
|
|
@ -95,11 +95,7 @@ pub struct MonikerIdentifier {
|
||||||
|
|
||||||
impl ToString for MonikerIdentifier {
|
impl ToString for MonikerIdentifier {
|
||||||
fn to_string(&self) -> String {
|
fn to_string(&self) -> String {
|
||||||
match self {
|
format!("{}::{}", self.crate_name, self.description.iter().map(|x| &x.name).join("::"))
|
||||||
MonikerIdentifier { description, crate_name } => {
|
|
||||||
format!("{}::{}", crate_name, description.iter().map(|x| &x.name).join("::"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue