@@ -110,7 +110,7 @@ fn main() {
110110
111111 println ! (
112112 "{}" ,
113- format!( "Watching directory: {}" , dir_path )
113+ format!( "Watching directory: {dir_path}" )
114114 . bright_yellow( )
115115 . bold( )
116116 ) ;
@@ -165,7 +165,7 @@ fn main() {
165165 }
166166 _ => { }
167167 } ,
168- Err ( e) => println ! ( "Watch error: {:?}" , e ) ,
168+ Err ( e) => println ! ( "Watch error: {e :?}" ) ,
169169 }
170170 }
171171 }
@@ -177,7 +177,7 @@ fn search_and_display_definitions(search_name: &str, parser: &Parser) {
177177 let mut total_matches = 0 ;
178178 println ! (
179179 "{}" ,
180- format!( "Searching for definitions matching: '{}'" , search_name )
180+ format!( "Searching for definitions matching: '{search_name }'" )
181181 . bright_yellow( )
182182 . bold( )
183183 ) ;
@@ -240,7 +240,7 @@ fn search_and_display_definitions(search_name: &str, parser: &Parser) {
240240 index += 1 ;
241241 println ! (
242242 "{} {}" ,
243- format!( "{}:" , index ) . bright_blue( ) ,
243+ format!( "{index }:" ) . bright_blue( ) ,
244244 line. bright_green( )
245245 ) ;
246246 }
@@ -254,15 +254,15 @@ fn search_and_display_definitions(search_name: &str, parser: &Parser) {
254254 if !found_any {
255255 println ! (
256256 "\n {}" ,
257- format!( "No definitions found matching '{}'" , search_name )
257+ format!( "No definitions found matching '{search_name }'" )
258258 . red( )
259259 . bold( )
260260 ) ;
261261 } else {
262262 println ! ( "\n {}" , "─" . repeat( 60 ) . dimmed( ) ) ;
263263 println ! (
264264 "{}" ,
265- format!( "Found {} matching definition(s)" , total_matches ) . bright_yellow( )
265+ format!( "Found {total_matches } matching definition(s)" ) . bright_yellow( )
266266 ) ;
267267 }
268268}
0 commit comments