fn is_version_dep(dependency: &cargo_metadata::Dependency) -> bool {
            match dependency.source {
                // This is the criterion cargo uses (in `SourceId::from_url`) to decide whether a
                // dependency has the 'registry' kind.
                Some(ref s) => s.splitn(2, '+').next() == Some("registry"),
                _ => false,
            }
        }
/// Helper function to check whether a `cargo_metadata::Dependency` is a version dependency.
Helper function to check whether a `cargo_metadata::Dependency` is a version dependency.
Helper function to check whether a ` cargo_metadata :: Dependency ` is a version dependency .
fn is_version_dep(dependency: &cargo_metadata::Dependency) -> bool {
            match dependency.source {
                // This is the criterion cargo uses (in `SourceId::from_url`) to decide whether a
                // dependency has the 'registry' kind.
                Some(ref s) => s.splitn(2, '+').next() == Some("registry"),
                _ => false,
            }
        }
fn is_version_dep ( dependency : & cargo_metadata :: Dependency ) -> bool { match dependency . source { // This is the criterion cargo uses (in `SourceId::from_url`) to decide whether a // dependency has the 'registry' kind. Some ( ref s ) => s . splitn ( 2 , '+' ) . next ( ) == Some ( " " ) , _ => false , } }
Helper function to check whether a `cargo_metadata::Dependency` is a version dependency.
Helper function to check whether a ` cargo_metadata :: Dependency ` is a version dependency .
dependency
&cargo_metadata::Dependency