Skip to content

Commit

Permalink
A few final minor fixes for bcx reorg.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Apr 19, 2020
1 parent e06a911 commit df5cb70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/cargo/core/compiler/fingerprint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1209,7 +1209,7 @@ fn calculate_normal(cx: &mut Context<'_, '_>, unit: &Unit) -> CargoResult<Finger
let target_root = target_root(cx);
let local = if unit.mode.is_doc() {
// rustdoc does not have dep-info files.
let fingerprint = pkg_fingerprint(cx.bcx, unit.pkg)?;
let fingerprint = pkg_fingerprint(cx.bcx, &unit.pkg)?;
vec![LocalFingerprint::Precalculated(fingerprint)]
} else {
let dep_info = dep_info_loc(cx, unit);
Expand Down
4 changes: 0 additions & 4 deletions src/cargo/core/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,10 +473,6 @@ impl Manifest {
pub fn targets(&self) -> &[Target] {
&self.targets
}
pub fn targets_mut(&mut self) -> &mut [Target] {
// TOOD: Remove
&mut self.targets
}
pub fn version(&self) -> &Version {
self.package_id().version()
}
Expand Down

0 comments on commit df5cb70

Please sign in to comment.