Skip to content

Commit aca8bcb

Browse files
pietroalbiniMark-Simulacrum
authored andcommitted
remove "field is never read" warning
1 parent b63ab80 commit aca8bcb

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/bootstrap/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ pub struct Build {
277277
struct Crate {
278278
name: Interned<String>,
279279
deps: HashSet<Interned<String>>,
280-
id: String,
281280
path: PathBuf,
282281
}
283282

src/bootstrap/metadata.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ struct Output {
1414

1515
#[derive(Deserialize)]
1616
struct Package {
17-
id: String,
1817
name: String,
1918
source: Option<String>,
2019
manifest_path: String,
@@ -50,7 +49,7 @@ pub fn build(build: &mut Build) {
5049
.filter(|dep| dep.source.is_none())
5150
.map(|dep| INTERNER.intern_string(dep.name))
5251
.collect();
53-
build.crates.insert(name, Crate { name, id: package.id, deps, path });
52+
build.crates.insert(name, Crate { name, deps, path });
5453
}
5554
}
5655
}

src/tools/bump-stage0/src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ struct ManifestPackage {
196196

197197
#[derive(Debug, serde::Deserialize)]
198198
struct ManifestTargetPackage {
199-
available: bool,
200199
url: Option<String>,
201200
hash: Option<String>,
202201
xz_url: Option<String>,

0 commit comments

Comments
 (0)