File tree Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -756,7 +756,7 @@ mod tests {
756
756
if let Some ( ta) = & mut comp. textarea {
757
757
let txt = ta. lines ( ) ;
758
758
assert_eq ! ( txt[ 0 ] . len( ) , 1 ) ;
759
- assert_eq ! ( txt[ 0 ] . as_bytes( ) [ 0 ] , 'a' as u8 ) ;
759
+ assert_eq ! ( txt[ 0 ] . as_bytes( ) [ 0 ] , b 'a') ;
760
760
}
761
761
}
762
762
Original file line number Diff line number Diff line change @@ -404,9 +404,9 @@ mod tests {
404
404
)
405
405
. unwrap ( ) ;
406
406
407
- assert_eq ! ( res. multiple_items_at_path( 0 ) , false ) ;
408
- assert_eq ! ( res. multiple_items_at_path( 1 ) , false ) ;
409
- assert_eq ! ( res. multiple_items_at_path( 2 ) , true ) ;
407
+ assert ! ( ! res. multiple_items_at_path( 0 ) ) ;
408
+ assert ! ( ! res. multiple_items_at_path( 1 ) ) ;
409
+ assert ! ( res. multiple_items_at_path( 2 ) ) ;
410
410
}
411
411
412
412
#[ test]
Original file line number Diff line number Diff line change @@ -509,10 +509,7 @@ mod tests {
509
509
false , //
510
510
]
511
511
) ;
512
- assert_eq ! (
513
- res. is_visible_index( res. selection. unwrap( ) ) ,
514
- true
515
- ) ;
512
+ assert ! ( res. is_visible_index( res. selection. unwrap( ) ) ) ;
516
513
assert_eq ! ( res. selection, Some ( 0 ) ) ;
517
514
}
518
515
Original file line number Diff line number Diff line change @@ -197,8 +197,7 @@ impl Component for BlameFilePopup {
197
197
let has_result = self
198
198
. blame
199
199
. as_ref ( )
200
- . map ( |blame| blame. result ( ) . is_some ( ) )
201
- . unwrap_or_default ( ) ;
200
+ . is_some_and ( |blame| blame. result ( ) . is_some ( ) ) ;
202
201
if self . is_visible ( ) || force_all {
203
202
out. push (
204
203
CommandInfo :: new (
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ mod test {
445
445
"mnopab cdefghi j" ,
446
446
"klmno" ,
447
447
]
448
- )
448
+ ) ;
449
449
}
450
450
451
451
#[ test]
You can’t perform that action at this time.
0 commit comments