File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/cargo/ops/cargo_package Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ pub fn check_repo_state(
49
49
) -> CargoResult < Option < VcsInfo > > {
50
50
let Ok ( repo) = git2:: Repository :: discover ( p. root ( ) ) else {
51
51
gctx. shell ( ) . verbose ( |shell| {
52
- shell. warn ( format ! ( "no (git) VCS found for `{}`" , p. root( ) . display( ) ) )
52
+ shell. warn ( format_args ! (
53
+ "no (git) VCS found for `{}`" ,
54
+ p. root( ) . display( )
55
+ ) )
53
56
} ) ?;
54
57
// No Git repo found. Have to assume it is clean.
55
58
return Ok ( None ) ;
@@ -69,7 +72,7 @@ pub fn check_repo_state(
69
72
let path = paths:: strip_prefix_canonical ( path, workdir) . unwrap_or_else ( |_| path. to_path_buf ( ) ) ;
70
73
let Ok ( status) = repo. status_file ( & path) else {
71
74
gctx. shell ( ) . verbose ( |shell| {
72
- shell. warn ( format ! (
75
+ shell. warn ( format_args ! (
73
76
"no (git) Cargo.toml found at `{}` in workdir `{}`" ,
74
77
path. display( ) ,
75
78
workdir. display( )
@@ -82,7 +85,7 @@ pub fn check_repo_state(
82
85
83
86
if !( status & git2:: Status :: IGNORED ) . is_empty ( ) {
84
87
gctx. shell ( ) . verbose ( |shell| {
85
- shell. warn ( format ! (
88
+ shell. warn ( format_args ! (
86
89
"found (git) Cargo.toml ignored at `{}` in workdir `{}`" ,
87
90
path. display( ) ,
88
91
workdir. display( )
You can’t perform that action at this time.
0 commit comments