Skip to content

Commit

Permalink
Add back Manifest::targets_mut
Browse files Browse the repository at this point in the history
It is needed by cargo-c, it was removed in df5cb70
  • Loading branch information
lu-zero committed Jul 17, 2020
1 parent b92636f commit 9c8544a
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 9c8544a

Please sign in to comment.