pub fn strip_variant(&self) -> PkgUrl {
        PkgUrl {
            repo: self.repo.clone(),
            path: format!("/{}", self.name()),
            hash: self.hash.clone(),
            resource: self.resource.clone(),
            name: self.name().to_owned(),
            variant: None,
        }
    }
/// Produce a new [PkgUrl] with any variant stripped off.
Produce a new [PkgUrl] with any variant stripped off.
Produce a new [ PkgUrl ] with any variant stripped off .
pub fn strip_variant(&self) -> PkgUrl {
        PkgUrl {
            repo: self.repo.clone(),
            path: format!("/{}", self.name()),
            hash: self.hash.clone(),
            resource: self.resource.clone(),
            name: self.name().to_owned(),
            variant: None,
        }
    }
pub fn strip_variant ( & self ) -> PkgUrl { PkgUrl { repo : self . repo . clone ( ) , path : format ! ( " " self name ( ) ) , hash : self . hash . clone ( ) , resource : self . resource . clone ( ) , name : self . name ( ) . to_owned ( ) , variant : None , } }
Produce a new [PkgUrl] with any variant stripped off.
Produce a new [ PkgUrl ] with any variant stripped off .
&self
&self