mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 14:50:03 -04:00
Fix some clippy issues found by 1.84.0 (#5603)
This commit is contained in:
@@ -58,9 +58,7 @@ impl crate::View for TextEditDemo {
|
||||
}
|
||||
});
|
||||
|
||||
let anything_selected = output
|
||||
.cursor_range
|
||||
.map_or(false, |cursor| !cursor.is_empty());
|
||||
let anything_selected = output.cursor_range.is_some_and(|cursor| !cursor.is_empty());
|
||||
|
||||
ui.add_enabled(
|
||||
anything_selected,
|
||||
|
||||
Reference in New Issue
Block a user