diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs index 5fec2c39621..02af0b9ee79 100644 --- a/src/tools/build-manifest/src/main.rs +++ b/src/tools/build-manifest/src/main.rs @@ -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] = &[ diff --git a/src/tools/build-manifest/src/versions.rs b/src/tools/build-manifest/src/versions.rs index 95c2297de26..92ef9968fe5 100644 --- a/src/tools/build-manifest/src/versions.rs +++ b/src/tools/build-manifest/src/versions.rs @@ -157,17 +157,6 @@ fn load_version_from_tarball(&mut self, package: &PkgType) -> Result { - *version = VersionInfo::default(); - } - None => { - self.versions.insert(package.clone(), VersionInfo::default()); - } - } - } - pub(crate) fn archive_name( &self, package: &PkgType,