@@ -107,11 +107,7 @@ impl Callbacks {
107107 reference : & str ,
108108 msg : Option < & str > ,
109109 ) {
110- log:: debug!(
111- "push_update_reference: '{}' {:?}" ,
112- reference,
113- msg
114- ) ;
110+ log:: debug!( "push_update_reference: '{reference}' {msg:?}" , ) ;
115111
116112 if let Ok ( mut stats) = self . stats . lock ( ) {
117113 stats. push_rejected_msg = msg
@@ -125,7 +121,7 @@ impl Callbacks {
125121 total : usize ,
126122 current : usize ,
127123 ) {
128- log:: debug!( "packing: {:?} - {}/{}" , stage , current , total ) ;
124+ log:: debug!( "packing: {stage :?} - {current }/{total}" ) ;
129125 self . sender . clone ( ) . map ( |sender| {
130126 sender. send ( ProgressNotification :: Packing {
131127 stage,
@@ -150,7 +146,7 @@ impl Callbacks {
150146 }
151147
152148 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 }]" ) ;
154150 self . sender . clone ( ) . map ( |sender| {
155151 sender. send ( ProgressNotification :: UpdateTips {
156152 name : name. to_string ( ) ,
@@ -166,7 +162,7 @@ impl Callbacks {
166162 total : usize ,
167163 bytes : usize ,
168164 ) {
169- log:: debug!( "progress: {}/{} ({} B)" , current , total , bytes , ) ;
165+ log:: debug!( "progress: {current }/{total } ({bytes } B)" , ) ;
170166 self . sender . clone ( ) . map ( |sender| {
171167 sender. send ( ProgressNotification :: PushTransfer {
172168 current,
@@ -187,10 +183,7 @@ impl Callbacks {
187183 allowed_types : git2:: CredentialType ,
188184 ) -> std:: result:: Result < Cred , GitError > {
189185 log:: debug!(
190- "creds: '{}' {:?} ({:?})" ,
191- url,
192- username_from_url,
193- allowed_types
186+ "creds: '{url}' {username_from_url:?} ({allowed_types:?})" ,
194187 ) ;
195188
196189 // This boolean is used to avoid multiple calls to credentials callback.
0 commit comments