fn validate_version(&self, version: &Version) -> Result<(), ValidationError> {
        match self.greatest_minor_version(version.major) {
            Some(current) => {
                if current.0 < version {
                    Ok(())
                } else {
                    Err(ValidationError::version(current.0, version.clone()))
                }
            }
            None => Ok(()),
        }
    }
/// Check that the incoming crate version is greater than any in the index
Check that the incoming crate version is greater than any in the index
Check that the incoming crate version is greater than any in the index
fn validate_version(&self, version: &Version) -> Result<(), ValidationError> {
        match self.greatest_minor_version(version.major) {
            Some(current) => {
                if current.0 < version {
                    Ok(())
                } else {
                    Err(ValidationError::version(current.0, version.clone()))
                }
            }
            None => Ok(()),
        }
    }
fn validate_version ( & self , version : & Version ) -> Result < ( ) , ValidationError > { match self . greatest_minor_version ( version . major ) { Some ( current ) => { if current . 0 < version { Ok ( ( ) ) } else { Err ( ValidationError :: version ( current . 0 , version . clone ( ) ) ) } } None => Ok ( ( ) ) , } }
Check that the incoming crate version is greater than any in the index
Check that the incoming crate version is greater than any in the index
&self
version
&Version