remove "field is never read" warning
This commit is contained in:
parent
b63ab8005a
commit
aca8bcb48f
3 changed files with 1 additions and 4 deletions
|
@ -277,7 +277,6 @@ pub struct Build {
|
|||
struct Crate {
|
||||
name: Interned<String>,
|
||||
deps: HashSet<Interned<String>>,
|
||||
id: String,
|
||||
path: PathBuf,
|
||||
}
|
||||
|
||||
|
|
|
@ -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 });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -196,7 +196,6 @@ struct ManifestPackage {
|
|||
|
||||
#[derive(Debug, serde::Deserialize)]
|
||||
struct ManifestTargetPackage {
|
||||
available: bool,
|
||||
url: Option<String>,
|
||||
hash: Option<String>,
|
||||
xz_url: Option<String>,
|
||||
|
|
Loading…
Add table
Reference in a new issue