@@ -302,42 +302,42 @@ impl fmt::Display for &Filter<'_> {
302302 display_flag ! ( "dedicated" , FilterFlags :: DEDICATED ) ;
303303 display_flag ! ( "secure" , FilterFlags :: SECURE ) ;
304304 if let Some ( s) = self . gamedir {
305- write ! ( fmt, "\\ gamedir\\ {}" , s ) ?;
305+ write ! ( fmt, "\\ gamedir\\ {s}" ) ?;
306306 }
307307 display_flag ! ( "secure" , FilterFlags :: SECURE ) ;
308308 if let Some ( s) = self . map {
309- write ! ( fmt, "\\ map\\ {}" , s ) ?;
309+ write ! ( fmt, "\\ map\\ {s}" ) ?;
310310 }
311311 display_flag ! ( "empty" , FilterFlags :: EMPTY ) ;
312312 display_flag ! ( "full" , FilterFlags :: FULL ) ;
313313 display_flag ! ( "password" , FilterFlags :: PASSWORD ) ;
314314 display_flag ! ( "noplayers" , FilterFlags :: NOPLAYERS ) ;
315315 if let Some ( v) = self . clver {
316- write ! ( fmt, "\\ clver\\ {}" , v ) ?;
316+ write ! ( fmt, "\\ clver\\ {v}" ) ?;
317317 }
318318 display_flag ! ( "nat" , FilterFlags :: NAT ) ;
319319 display_flag ! ( "lan" , FilterFlags :: LAN ) ;
320320 display_flag ! ( "bots" , FilterFlags :: BOTS ) ;
321321 if let Some ( x) = self . key {
322- write ! ( fmt, "\\ key\\ {:x}" , x ) ?;
322+ write ! ( fmt, "\\ key\\ {x :x}" ) ?;
323323 }
324324 if let Some ( x) = self . protocol {
325- write ! ( fmt, "\\ protocol\\ {}" , x ) ?;
325+ write ! ( fmt, "\\ protocol\\ {x}" ) ?;
326326 }
327327 if let Some ( x) = self . client_buildnum {
328- write ! ( fmt, "\\ buildnum\\ {}" , x ) ?;
328+ write ! ( fmt, "\\ buildnum\\ {x}" ) ?;
329329 }
330330 if let Some ( x) = self . client_os {
331- write ! ( fmt, "\\ os\\ {}" , x ) ?;
331+ write ! ( fmt, "\\ os\\ {x}" ) ?;
332332 }
333333 if let Some ( x) = self . client_arch {
334- write ! ( fmt, "\\ arch\\ {}" , x ) ?;
334+ write ! ( fmt, "\\ arch\\ {x}" ) ?;
335335 }
336336 if let Some ( x) = self . client_branch {
337- write ! ( fmt, "\\ branch\\ {}" , x ) ?;
337+ write ! ( fmt, "\\ branch\\ {x}" ) ?;
338338 }
339339 if let Some ( x) = self . client_commit {
340- write ! ( fmt, "\\ commit\\ {}" , x ) ?;
340+ write ! ( fmt, "\\ commit\\ {x}" ) ?;
341341 }
342342 Ok ( ( ) )
343343 }
0 commit comments