File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -210,7 +210,11 @@ pub fn shorten_paths(text: &str, prefix: &str) -> String {
210210
211211 let matches_prefix_at = |s : & str | -> bool {
212212 if case_insensitive {
213- let s_lower: String = s. chars ( ) . take ( norm_prefix. chars ( ) . count ( ) ) . collect :: < String > ( ) . to_lowercase ( ) ;
213+ let s_lower: String = s
214+ . chars ( )
215+ . take ( norm_prefix. chars ( ) . count ( ) )
216+ . collect :: < String > ( )
217+ . to_lowercase ( ) ;
214218 let p_lower: String = norm_prefix. to_lowercase ( ) ;
215219 s_lower == p_lower
216220 } else {
Original file line number Diff line number Diff line change @@ -198,7 +198,10 @@ mod tests {
198198 text: text. clone( ) ,
199199 } ) ] ;
200200 let entries = records_to_view_entries ( & records, "/tmp/wt/proj" ) ;
201- assert_eq ! ( entries[ 0 ] . short_text, text, "worktree log must not be shortened" ) ;
201+ assert_eq ! (
202+ entries[ 0 ] . short_text, text,
203+ "worktree log must not be shortened"
204+ ) ;
202205 }
203206
204207 #[ test]
You can’t perform that action at this time.
0 commit comments