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