mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Auto merge of #8494 - lu-zero:unbreak-cargo-c, r=ehuss
Add back Manifest::targets_mut It is needed by cargo-c, it was removed in df5cb70e7bc8872216af736f108f5a959a6d2302
This commit is contained in:
commit
c004bf938b
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user