mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
refactor(compile): Use string interpolation
This commit is contained in:
parent
5375c3f60d
commit
54dd94b49b
@ -311,15 +311,13 @@ impl<'a> UnitGenerator<'a, '_> {
|
||||
if !suggestion.is_empty() {
|
||||
write!(
|
||||
msg,
|
||||
"no {} target {} `{}` in {}{}",
|
||||
target_desc, named, target_name, unmatched_packages, suggestion,
|
||||
"no {target_desc} target {named} `{target_name}` in {unmatched_packages}{suggestion}",
|
||||
)?;
|
||||
append_targets_elsewhere(&mut msg, "\n")?;
|
||||
} else {
|
||||
writeln!(
|
||||
msg,
|
||||
"no {} target {} `{}` in {}.",
|
||||
target_desc, named, target_name, unmatched_packages
|
||||
"no {target_desc} target {named} `{target_name}` in {unmatched_packages}.",
|
||||
)?;
|
||||
|
||||
append_targets_elsewhere(&mut msg, "")?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user