Skip to content

Commit f242df6

Browse files
authored
Merge pull request #8527 from Mark-Simulacrum/rust-1.45.0
[stable] Add back Manifest::targets_mut
2 parents 744bd1f + b88392f commit f242df6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cargo"
3-
version = "0.46.0"
3+
version = "0.46.1"
44
edition = "2018"
55
authors = ["Yehuda Katz <[email protected]>",
66
"Carl Lerche <[email protected]>",

src/cargo/core/manifest.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ impl Manifest {
431431
pub fn targets(&self) -> &[Target] {
432432
&self.targets
433433
}
434+
// It is used by cargo-c, please do not remove it
435+
pub fn targets_mut(&mut self) -> &mut [Target] {
436+
&mut self.targets
437+
}
434438
pub fn version(&self) -> &Version {
435439
self.package_id().version()
436440
}

0 commit comments

Comments
 (0)