1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 21:30:03 -04:00

Fix some clippy issues found by 1.84.0 (#5603)

This commit is contained in:
Emil Ernerfeldt
2025-01-13 08:29:13 +01:00
committed by GitHub
parent 1339639706
commit 164f56f554
33 changed files with 65 additions and 81 deletions

View File

@@ -993,22 +993,22 @@ impl RowBreakCandidates {
punctuation,
any,
} = self;
if space.map_or(false, |s| s < index) {
if space.is_some_and(|s| s < index) {
*space = None;
}
if cjk.map_or(false, |s| s < index) {
if cjk.is_some_and(|s| s < index) {
*cjk = None;
}
if pre_cjk.map_or(false, |s| s < index) {
if pre_cjk.is_some_and(|s| s < index) {
*pre_cjk = None;
}
if dash.map_or(false, |s| s < index) {
if dash.is_some_and(|s| s < index) {
*dash = None;
}
if punctuation.map_or(false, |s| s < index) {
if punctuation.is_some_and(|s| s < index) {
*punctuation = None;
}
if any.map_or(false, |s| s < index) {
if any.is_some_and(|s| s < index) {
*any = None;
}
}