@@ -374,7 +374,7 @@ impl List {
374
374
let selected_line_index = todo_file. get_selected_line_index ( ) ;
375
375
let next_action_is_break = todo_file
376
376
. get_line ( selected_line_index + 1 )
377
- . map_or ( false , |line| line. get_action ( ) == & Action :: Break ) ;
377
+ . is_some_and ( |line| line. get_action ( ) == & Action :: Break ) ;
378
378
379
379
// no need to add an additional break when the next line is already a break
380
380
if next_action_is_break {
@@ -383,7 +383,7 @@ impl List {
383
383
384
384
let selected_action_is_break = todo_file
385
385
. get_line ( selected_line_index)
386
- . map_or ( false , |line| line. get_action ( ) == & Action :: Break ) ;
386
+ . is_some_and ( |line| line. get_action ( ) == & Action :: Break ) ;
387
387
388
388
let cursor_update = if selected_action_is_break {
389
389
todo_file. remove_lines ( selected_line_index, selected_line_index) ;
@@ -466,7 +466,7 @@ impl List {
466
466
if context. is_full_width ( ) {
467
467
todo_line_segment_options. insert ( TodoLineSegmentsOptions :: FULL_WIDTH ) ;
468
468
}
469
- if search_index. map_or ( false , |v| v. index ( ) == index) {
469
+ if search_index. is_some_and ( |v| v. index ( ) == index) {
470
470
todo_line_segment_options. insert ( TodoLineSegmentsOptions :: SEARCH_LINE ) ;
471
471
}
472
472
let mut view_line = ViewLine :: new_with_pinned_segments (
0 commit comments