@@ -275,7 +275,9 @@ mod tests {
275275 let history = DefaultHistory :: new ( ) ;
276276 let line = format ! ( "cat {}/.gi" , temp_path. display( ) ) ;
277277 let pos = line. len ( ) ;
278- let ( _start, matches) = completer. complete ( & line, pos, & Context :: new ( & history) ) . unwrap ( ) ;
278+ let ( _start, matches) = completer
279+ . complete ( & line, pos, & Context :: new ( & history) )
280+ . unwrap ( ) ;
279281
280282 // Should find .gitignore and .github/
281283 assert_eq ! ( matches. len( ) , 2 ) ;
@@ -300,7 +302,9 @@ mod tests {
300302 let history = DefaultHistory :: new ( ) ;
301303 let line = format ! ( "cat {}/" , temp_path. display( ) ) ;
302304 let pos = line. len ( ) ;
303- let ( _start, matches) = completer. complete ( & line, pos, & Context :: new ( & history) ) . unwrap ( ) ;
305+ let ( _start, matches) = completer
306+ . complete ( & line, pos, & Context :: new ( & history) )
307+ . unwrap ( ) ;
304308
305309 // Should only find visible files, not hidden ones
306310 let displays: Vec < & str > = matches. iter ( ) . map ( |m| m. display . as_str ( ) ) . collect ( ) ;
@@ -323,7 +327,9 @@ mod tests {
323327 let history = DefaultHistory :: new ( ) ;
324328 let line = format ! ( "cd {}/.gith" , temp_path. display( ) ) ;
325329 let pos = line. len ( ) ;
326- let ( _start, matches) = completer. complete ( & line, pos, & Context :: new ( & history) ) . unwrap ( ) ;
330+ let ( _start, matches) = completer
331+ . complete ( & line, pos, & Context :: new ( & history) )
332+ . unwrap ( ) ;
327333
328334 // Should find .github/
329335 assert_eq ! ( matches. len( ) , 1 ) ;
@@ -345,7 +351,9 @@ mod tests {
345351 let history = DefaultHistory :: new ( ) ;
346352 let line = format ! ( "ls {}/." , temp_path. display( ) ) ;
347353 let pos = line. len ( ) ;
348- let ( _start, matches) = completer. complete ( & line, pos, & Context :: new ( & history) ) . unwrap ( ) ;
354+ let ( _start, matches) = completer
355+ . complete ( & line, pos, & Context :: new ( & history) )
356+ . unwrap ( ) ;
349357
350358 // Should find all hidden files
351359 assert ! ( matches. len( ) >= 3 ) ;
0 commit comments