remove "field is never read" warning

This commit is contained in:
Pietro Albini 2021-10-19 09:29:19 +02:00 committed by Mark Rousskov
parent b63ab8005a
commit aca8bcb48f
3 changed files with 1 additions and 4 deletions

View file

@ -277,7 +277,6 @@ pub struct Build {
struct Crate {
name: Interned<String>,
deps: HashSet<Interned<String>>,
id: String,
path: PathBuf,
}

View file

@ -14,7 +14,6 @@ struct Output {
#[derive(Deserialize)]
struct Package {
id: String,
name: String,
source: Option<String>,
manifest_path: String,
@ -50,7 +49,7 @@ pub fn build(build: &mut Build) {
.filter(|dep| dep.source.is_none())
.map(|dep| INTERNER.intern_string(dep.name))
.collect();
build.crates.insert(name, Crate { name, id: package.id, deps, path });
build.crates.insert(name, Crate { name, deps, path });
}
}
}

View file

@ -196,7 +196,6 @@ struct ManifestPackage {
#[derive(Debug, serde::Deserialize)]
struct ManifestTargetPackage {
available: bool,
url: Option<String>,
hash: Option<String>,
xz_url: Option<String>,