File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
crates/pg_diagnostics/src/display Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ impl NativeBacktrace {
148148 frame. symbols ( ) . iter ( ) . any ( |symbol| {
149149 symbol
150150 . addr ( )
151- . map_or ( false , |addr| addr as usize == self . top_frame )
151+ . is_some_and ( |addr| addr as usize == self . top_frame )
152152 } )
153153 } ) ;
154154
@@ -162,7 +162,7 @@ impl NativeBacktrace {
162162 frame. symbols ( ) . iter ( ) . any ( |symbol| {
163163 symbol
164164 . addr ( )
165- . map_or ( false , |addr| addr as usize == self . bottom_frame )
165+ . is_some_and ( |addr| addr as usize == self . bottom_frame )
166166 } )
167167 } ) ;
168168
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ pub(super) fn print_invisibles(
411411
412412 let next_char_is_whitespace = iter
413413 . peek ( )
414- . map_or ( false , |( _, char) | char. is_ascii_whitespace ( ) ) ;
414+ . is_some_and ( |( _, char) | char. is_ascii_whitespace ( ) ) ;
415415
416416 if prev_char_was_whitespace || next_char_is_whitespace {
417417 show_invisible = false ;
@@ -436,7 +436,7 @@ pub(super) fn print_invisibles(
436436
437437 // If we are a carriage return next to a \n then don't show the character as visible
438438 if options. ignore_trailing_carriage_return && char == '\r' {
439- let next_char_is_line_feed = iter. peek ( ) . map_or ( false , |( _, char) | * char == '\n' ) ;
439+ let next_char_is_line_feed = iter. peek ( ) . is_some_and ( |( _, char) | * char == '\n' ) ;
440440 if next_char_is_line_feed {
441441 continue ;
442442 }
You can’t perform that action at this time.
0 commit comments