Skip to content

Commit 7a542b1

Browse files
committed
clippy: use is_ok_and
1 parent 7a6e986 commit 7a542b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/destination.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ impl Destination {
5050
}
5151

5252
fn is_dumb_term() -> bool {
53-
env::var("TERM").map_or(false, |s| s.eq_ignore_ascii_case("dumb"))
53+
env::var("TERM").is_ok_and(|s| s.eq_ignore_ascii_case("dumb"))
5454
}

0 commit comments

Comments
 (0)