We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 731d881 commit fcd7617Copy full SHA for fcd7617
1 file changed
src/cargo/core/manifest.rs
@@ -518,11 +518,9 @@ impl Manifest {
518
if self.default_kind.is_some() || self.forced_kind.is_some() {
519
self.unstable_features
520
.require(Feature::per_package_target())
521
- .chain_err(|| {
522
- anyhow::format_err!(
523
- "the `package.default-target` and `package.forced-target` \
524
- manifest keys are unstable and may not work properly"
525
- )
+ .with_context(|| {
+ "the `package.default-target` and `package.forced-target` \
+ manifest keys are unstable and may not work properly"
526
})?;
527
}
528
0 commit comments