@@ -82,7 +82,7 @@ async fn run(args: Args, session: &Session) -> Result<(), Error> {
8282 . as_ref ( )
8383 . and_then ( |s| s. find_next_occurrence ( & chrono:: Utc :: now ( ) , false ) . ok ( ) ) ;
8484
85- let handler = LoggingPairingHandler :: new ( & session) ;
85+ let handler = LoggingPairingHandler :: new ( session) ;
8686
8787 pinger. on_start ( ) . await ;
8888
@@ -178,7 +178,7 @@ impl<E: BackupEntity> PairingHandler<E> for LoggingPairingHandler<'_> {
178178
179179 if error. is ( human_errors:: Kind :: System ) {
180180 let info = tracing_batteries:: ErrorInfo :: new ( & error)
181- . with_metadata ( "policy.kind" , format ! ( "{}" , policy. kind) ) ;
181+ . with_metadata ( "policy.kind" , policy. kind . to_string ( ) ) ;
182182
183183 self . session . record_custom_error ( info) ;
184184 } else {
@@ -197,7 +197,7 @@ impl<E: BackupEntity> PairingHandler<E> for LoggingPairingHandler<'_> {
197197 self . session . record_event (
198198 "policy::run" ,
199199 [
200- ( "policy.kind" , format ! ( "{}" , policy. kind) ) ,
200+ ( "policy.kind" , policy. kind . to_string ( ) ) ,
201201 ( "stats.new" , summary. new . to_string ( ) ) ,
202202 ( "stats.unchanged" , summary. unchanged . to_string ( ) ) ,
203203 ( "stats.updated" , summary. updated . to_string ( ) ) ,
0 commit comments