Skip to content

Commit

Permalink
Merge pull request #8527 from Mark-Simulacrum/rust-1.45.0
Browse files Browse the repository at this point in the history
[stable] Add back Manifest::targets_mut
  • Loading branch information
alexcrichton authored Jul 22, 2020
2 parents 744bd1f + b88392f commit f242df6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo"
version = "0.46.0"
version = "0.46.1"
edition = "2018"
authors = ["Yehuda Katz <[email protected]>",
"Carl Lerche <[email protected]>",
Expand Down
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 f242df6

Please sign in to comment.