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:
bors 2020-07-18 03:14:53 +00:00
commit c004bf938b

View File

@ -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()
}