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 {
|
struct Crate {
|
||||||
name: Interned<String>,
|
name: Interned<String>,
|
||||||
deps: HashSet<Interned<String>>,
|
deps: HashSet<Interned<String>>,
|
||||||
id: String,
|
|
||||||
path: PathBuf,
|
path: PathBuf,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ struct Output {
|
||||||
|
|
||||||
#[derive(Deserialize)]
|
#[derive(Deserialize)]
|
||||||
struct Package {
|
struct Package {
|
||||||
id: String,
|
|
||||||
name: String,
|
name: String,
|
||||||
source: Option<String>,
|
source: Option<String>,
|
||||||
manifest_path: String,
|
manifest_path: String,
|
||||||
|
@ -50,7 +49,7 @@ pub fn build(build: &mut Build) {
|
||||||
.filter(|dep| dep.source.is_none())
|
.filter(|dep| dep.source.is_none())
|
||||||
.map(|dep| INTERNER.intern_string(dep.name))
|
.map(|dep| INTERNER.intern_string(dep.name))
|
||||||
.collect();
|
.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)]
|
#[derive(Debug, serde::Deserialize)]
|
||||||
struct ManifestTargetPackage {
|
struct ManifestTargetPackage {
|
||||||
available: bool,
|
|
||||||
url: Option<String>,
|
url: Option<String>,
|
||||||
hash: Option<String>,
|
hash: Option<String>,
|
||||||
xz_url: Option<String>,
|
xz_url: Option<String>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue