match_single_binding

This commit is contained in:
Johann Hemmann 2024-01-19 15:20:34 +01:00
parent add40c8660
commit d351cb8dfb
3 changed files with 2 additions and 6 deletions

View file

@ -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("::"))
}
}