File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/cargo/ops/cargo_compile Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -294,16 +294,16 @@ impl<'a> UnitGenerator<'a, '_> {
294
294
295
295
let unmatched_packages = match self . spec {
296
296
Packages :: Default | Packages :: OptOut ( _) | Packages :: All ( _) => {
297
- "default-run packages" . to_owned ( )
297
+ " in default-run packages" . to_owned ( )
298
298
}
299
299
Packages :: Packages ( packages) => {
300
300
let first = packages
301
301
. first ( )
302
302
. expect ( "The number of packages must be at least 1" ) ;
303
303
if packages. len ( ) == 1 {
304
- format ! ( "`{}` package" , first)
304
+ format ! ( " in `{}` package" , first)
305
305
} else {
306
- format ! ( "`{}`, ... packages" , first)
306
+ format ! ( " in `{}`, ... packages" , first)
307
307
}
308
308
}
309
309
} ;
@@ -313,7 +313,7 @@ impl<'a> UnitGenerator<'a, '_> {
313
313
let mut msg = String :: new ( ) ;
314
314
write ! (
315
315
msg,
316
- "no {target_desc} target {named} `{target_name}` in {unmatched_packages}{suggestion}" ,
316
+ "no {target_desc} target {named} `{target_name}`{unmatched_packages}{suggestion}" ,
317
317
) ?;
318
318
if !targets_elsewhere. is_empty ( ) {
319
319
append_targets_elsewhere ( & mut msg) ?;
You can’t perform that action at this time.
0 commit comments