mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 13:01:21 -03:00
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:
committed by
Fabian Boehm
parent
33c6eee9d2
commit
b32cc65166
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user