Remove unused imports
This commit is contained in:
parent
f45b570e08
commit
47cb378526
@ -11,9 +11,9 @@
|
||||
use crate::checksum::Checksums;
|
||||
use crate::manifest::{Component, Manifest, Package, Rename, Target};
|
||||
use crate::versions::{PkgType, Versions};
|
||||
use std::collections::{BTreeMap, HashMap, HashSet};
|
||||
use std::collections::{BTreeMap, HashSet};
|
||||
use std::env;
|
||||
use std::fs::{self, File};
|
||||
use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
static HOSTS: &[&str] = &[
|
||||
|
@ -157,17 +157,6 @@ fn load_version_from_tarball(&mut self, package: &PkgType) -> Result<VersionInfo
|
||||
Ok(VersionInfo { version, git_commit, present: true })
|
||||
}
|
||||
|
||||
pub(crate) fn disable_version(&mut self, package: &PkgType) {
|
||||
match self.versions.get_mut(package) {
|
||||
Some(version) => {
|
||||
*version = VersionInfo::default();
|
||||
}
|
||||
None => {
|
||||
self.versions.insert(package.clone(), VersionInfo::default());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn archive_name(
|
||||
&self,
|
||||
package: &PkgType,
|
||||
|
Loading…
Reference in New Issue
Block a user