Skip to content

Commit fcd7617

Browse files
committedApr 24, 2021
fix build
1 parent 731d881 commit fcd7617

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎src/cargo/core/manifest.rs

+3-5
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,9 @@ impl Manifest {
518518
if self.default_kind.is_some() || self.forced_kind.is_some() {
519519
self.unstable_features
520520
.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-
)
521+
.with_context(|| {
522+
"the `package.default-target` and `package.forced-target` \
523+
manifest keys are unstable and may not work properly"
526524
})?;
527525
}
528526

0 commit comments

Comments
 (0)
Please sign in to comment.