Skip to content

Commit

Permalink
Delete unused fields on Crate struct
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jun 13, 2019
1 parent 7234d8c commit 1154358
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions src/bootstrap/lib.rs
Expand Up @@ -270,14 +270,9 @@ pub struct Build {
#[derive(Debug)]
struct Crate {
name: Interned<String>,
version: String,
deps: HashSet<Interned<String>>,
id: String,
path: PathBuf,
doc_step: String,
build_step: String,
test_step: String,
bench_step: String,
}

impl Crate {
Expand Down
6 changes: 0 additions & 6 deletions src/bootstrap/metadata.rs
Expand Up @@ -20,7 +20,6 @@ struct Output {
struct Package {
id: String,
name: String,
version: String,
source: Option<String>,
manifest_path: String,
}
Expand Down Expand Up @@ -84,12 +83,7 @@ fn build_krate(features: &str, build: &mut Build, resolves: &mut Vec<ResolveNode
let mut path = PathBuf::from(package.manifest_path);
path.pop();
build.crates.insert(name, Crate {
build_step: format!("build-crate-{}", name),
doc_step: format!("doc-crate-{}", name),
test_step: format!("test-crate-{}", name),
bench_step: format!("bench-crate-{}", name),
name,
version: package.version,
id: package.id,
deps: HashSet::new(),
path,
Expand Down

0 comments on commit 1154358

Please sign in to comment.