mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
match_single_binding
This commit is contained in:
parent
add40c8660
commit
d351cb8dfb
3 changed files with 2 additions and 6 deletions
|
@ -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("::"))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue