Skip to content

Commit

Permalink
Auto merge of #8494 - lu-zero:unbreak-cargo-c, r=ehuss
Browse files Browse the repository at this point in the history
Add back Manifest::targets_mut

It is needed by cargo-c, it was removed in df5cb70
  • Loading branch information
bors committed Jul 18, 2020
2 parents 2a64ae8 + 9c8544a commit c004bf9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cargo/core/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,10 @@ impl Manifest {
pub fn targets(&self) -> &[Target] {
&self.targets
}
// It is used by cargo-c, please do not remove it
pub fn targets_mut(&mut self) -> &mut [Target] {
&mut self.targets
}
pub fn version(&self) -> &Version {
self.package_id().version()
}
Expand Down

0 comments on commit c004bf9

Please sign in to comment.