Skip to content

Commit

Permalink
remove "field is never read" warning
Browse files Browse the repository at this point in the history
  • Loading branch information
pietroalbini authored and Mark-Simulacrum committed Oct 24, 2021
1 parent b63ab80 commit aca8bcb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ pub struct Build {
struct Crate {
name: Interned<String>,
deps: HashSet<Interned<String>>,
id: String,
path: PathBuf,
}

Expand Down
3 changes: 1 addition & 2 deletions src/bootstrap/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ struct Output {

#[derive(Deserialize)]
struct Package {
id: String,
name: String,
source: Option<String>,
manifest_path: String,
Expand Down Expand Up @@ -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 });
}
}
}
1 change: 0 additions & 1 deletion src/tools/bump-stage0/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ struct ManifestPackage {

#[derive(Debug, serde::Deserialize)]
struct ManifestTargetPackage {
available: bool,
url: Option<String>,
hash: Option<String>,
xz_url: Option<String>,
Expand Down

0 comments on commit aca8bcb

Please sign in to comment.