fn comp_to_ver(c: &Comparator) -> Version {
    Version {
        major: c.major,
        minor: c.minor.unwrap_or(0),
        patch: c.patch.unwrap_or(0),
        pre: c.pre.clone(),
        build: Default::default(),
    }
}
/// Strips comparison operators from a Comparator and turns it into a Version.
/// Would have been better implemented by `into` but these are foreign types
Strips comparison operators from a Comparator and turns it into a Version.
Would have been better implemented by `into` but these are foreign types
Strips comparison operators from a Comparator and turns it into a Version . Would have been better implemented by ` into ` but these are foreign types
fn comp_to_ver(c: &Comparator) -> Version {
    Version {
        major: c.major,
        minor: c.minor.unwrap_or(0),
        patch: c.patch.unwrap_or(0),
        pre: c.pre.clone(),
        build: Default::default(),
    }
}
fn comp_to_ver ( c : & Comparator ) -> Version { Version { major : c . major , minor : c . minor . unwrap_or ( 0 ) , patch : c . patch . unwrap_or ( 0 ) , pre : c . pre . clone ( ) , build : Default :: default ( ) , } }
Strips comparison operators from a Comparator and turns it into a Version.
Strips comparison operators from a Comparator and turns it into a Version .
c
&Comparator
c
&Comparator