@@ -107,11 +107,7 @@ impl Callbacks {
107
107
reference : & str ,
108
108
msg : Option < & str > ,
109
109
) {
110
- log:: debug!(
111
- "push_update_reference: '{}' {:?}" ,
112
- reference,
113
- msg
114
- ) ;
110
+ log:: debug!( "push_update_reference: '{reference}' {msg:?}" ) ;
115
111
116
112
if let Ok ( mut stats) = self . stats . lock ( ) {
117
113
stats. push_rejected_msg = msg
@@ -125,7 +121,7 @@ impl Callbacks {
125
121
total : usize ,
126
122
current : usize ,
127
123
) {
128
- log:: debug!( "packing: {:?} - {}/{}" , stage , current , total ) ;
124
+ log:: debug!( "packing: {stage :?} - {current }/{total}" ) ;
129
125
self . sender . clone ( ) . map ( |sender| {
130
126
sender. send ( ProgressNotification :: Packing {
131
127
stage,
@@ -150,7 +146,7 @@ impl Callbacks {
150
146
}
151
147
152
148
fn update_tips ( & self , name : & str , a : git2:: Oid , b : git2:: Oid ) {
153
- log:: debug!( "update tips: '{}' [{}] [{}]" , name , a , b ) ;
149
+ log:: debug!( "update tips: '{name }' [{a }] [{b }]" ) ;
154
150
self . sender . clone ( ) . map ( |sender| {
155
151
sender. send ( ProgressNotification :: UpdateTips {
156
152
name : name. to_string ( ) ,
@@ -166,7 +162,7 @@ impl Callbacks {
166
162
total : usize ,
167
163
bytes : usize ,
168
164
) {
169
- log:: debug!( "progress: {}/{} ({} B)" , current , total , bytes , ) ;
165
+ log:: debug!( "progress: {current }/{total } ({bytes } B)" , ) ;
170
166
self . sender . clone ( ) . map ( |sender| {
171
167
sender. send ( ProgressNotification :: PushTransfer {
172
168
current,
@@ -187,10 +183,7 @@ impl Callbacks {
187
183
allowed_types : git2:: CredentialType ,
188
184
) -> std:: result:: Result < Cred , GitError > {
189
185
log:: debug!(
190
- "creds: '{}' {:?} ({:?})" ,
191
- url,
192
- username_from_url,
193
- allowed_types
186
+ "creds: '{url}' {username_from_url:?} ({allowed_types:?})"
194
187
) ;
195
188
196
189
// This boolean is used to avoid multiple calls to credentials callback.
0 commit comments