Do not use is_some_and

This was stabilized in Rust 1.70.0, but CI uses 1.67.0 where this function was
still marked unstable.
This commit is contained in:
Gregory Anders
2023-09-29 14:45:40 -05:00
committed by Fabian Boehm
parent 33c6eee9d2
commit b32cc65166

View File

@@ -612,7 +612,7 @@ fn does_term_support_setting_title(vars: &EnvStack) -> bool {
};
let term: &wstr = term.as_ref();
if curses::term().is_some_and(|term| term.set_title.is_some()) {
if curses::term().map(|term| term.set_title.is_some()) == Some(true) {
return true;
}