Skip to content

Commit 123289b

Browse files
committed
refactor(toml): Inline a bail's format parameter
1 parent 9787229 commit 123289b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/cargo/util/toml/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ fn read_manifest_from_str(
118118
{
119119
for (name, dep) in deps {
120120
if dep.is_optional() {
121-
bail!(
122-
"{} is optional, but workspace dependencies cannot be optional",
123-
name
124-
);
121+
bail!("{name} is optional, but workspace dependencies cannot be optional",);
125122
}
126123
}
127124
}

0 commit comments

Comments
 (0)