pub fn unregister_version(&self, revision: &CleanName) -> io::Result<()> {
        let versions = match self.versions()? {
            Versions::V1 { versions } => {
                versions.into_iter().filter(|v| &v.revision != revision).collect()
            }
        };
        let versions = Versions::V1 { versions };
        io::atomic_write_json(&self.dir.join(metadata::Versions::filename()), &versions)?;
        Ok(())
    }
/// Remove version to repository
///
/// Fails if the atomic rename of `versions` fails.
Remove version to repository
Fails if the atomic rename of `versions` fails.
Remove version to repository Fails if the atomic rename of ` versions ` fails .
pub fn unregister_version(&self, revision: &CleanName) -> io::Result<()> {
        let versions = match self.versions()? {
            Versions::V1 { versions } => {
                versions.into_iter().filter(|v| &v.revision != revision).collect()
            }
        };
        let versions = Versions::V1 { versions };
        io::atomic_write_json(&self.dir.join(metadata::Versions::filename()), &versions)?;
        Ok(())
    }
pub fn unregister_version ( & self , revision : & CleanName ) -> io :: Result < ( ) > { let versions = match self . versions ( ) ? { Versions :: V1 { versions } => { versions . into_iter ( ) . filter ( | v | & v . revision != revision ) . collect ( ) } } ; let versions = Versions :: V1 { versions } ; io :: atomic_write_json ( & self . dir . join ( metadata :: Versions :: filename ( ) ) , & versions ) ? ; Ok ( ( ) ) }
Remove version to repository
Fails if the atomic rename of `versions` fails.
Remove version to repository Fails if the atomic rename of ` versions ` fails .
&self
revision
&CleanName
&self
revision
&CleanName