Skip to content

Commit

Permalink
refactor(toml): Inline a bail's format parameter
Browse files Browse the repository at this point in the history
epage committed Dec 5, 2023
1 parent 9787229 commit 123289b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cargo/util/toml/mod.rs
Original file line number Diff line number Diff line change
@@ -118,10 +118,7 @@ fn read_manifest_from_str(
{
for (name, dep) in deps {
if dep.is_optional() {
bail!(
"{} is optional, but workspace dependencies cannot be optional",
name
);
bail!("{name} is optional, but workspace dependencies cannot be optional",);
}
}
}

0 comments on commit 123289b

Please sign in to comment.