fn is_renamed(&self, dep_package: &Package) -> bool {
    self
      .crate_catalog_entry
      .package()
      .dependencies
      .iter()
      .filter(|x| x.name == dep_package.name)
      .filter(|x| x.req.matches(&dep_package.version))
      .filter(|x| x.source == dep_package.source.as_ref().map(|src| src.to_string()))
      .find(|x| x.rename.is_some())
      .map_or(false, |x| x.rename.is_some())
  }
/// Test to see if a dep has been renamed
///
/// Currently cargo-metadata provides rename detection in a few places, we take the names
/// from the resolution of a package
Test to see if a dep has been renamed
Currently cargo-metadata provides rename detection in a few places, we take the names
from the resolution of a package
Test to see if a dep has been renamed Currently cargo - metadata provides rename detection in a few places we take the names from the resolution of a package
fn is_renamed(&self, dep_package: &Package) -> bool {
    self
      .crate_catalog_entry
      .package()
      .dependencies
      .iter()
      .filter(|x| x.name == dep_package.name)
      .filter(|x| x.req.matches(&dep_package.version))
      .filter(|x| x.source == dep_package.source.as_ref().map(|src| src.to_string()))
      .find(|x| x.rename.is_some())
      .map_or(false, |x| x.rename.is_some())
  }
fn is_renamed ( & self , dep_package : & Package ) -> bool { self . crate_catalog_entry . package ( ) . dependencies . iter ( ) . filter ( | x | x . name == dep_package . name ) . filter ( | x | x . req . matches ( & dep_package . version ) ) . filter ( | x | x . source == dep_package . source . as_ref ( ) . map ( | src | src . to_string ( ) ) ) . find ( | x | x . rename . is_some ( ) ) . map_or ( false , | x | x . rename . is_some ( ) ) }
Test to see if a dep has been renamed
Currently cargo-metadata provides rename detection in a few places, we take the names
from the resolution of a package
Test to see if a dep has been renamed Currently cargo - metadata provides rename detection in a few places we take the names from the resolution of a package
&self
dep_package
&Package
&self
dep_package
&Package