From 123289ba977e10ec8436866c1cdb4d44d17474a3 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 5 Dec 2023 16:59:57 -0600 Subject: [PATCH] refactor(toml): Inline a bail's format parameter --- src/cargo/util/toml/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cargo/util/toml/mod.rs b/src/cargo/util/toml/mod.rs index d8405ec3bc8..a7954676800 100644 --- a/src/cargo/util/toml/mod.rs +++ b/src/cargo/util/toml/mod.rs @@ -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",); } } }