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

Enable more clippy lints (#7474)

This commit is contained in:
Emil Ernerfeldt
2025-08-24 16:27:28 +02:00
committed by GitHub
parent 608de4a264
commit 0fad7d8503
4 changed files with 8 additions and 8 deletions

View File

@@ -997,7 +997,7 @@ impl ResizeObserverContext {
// we rely on the resize observer to trigger the first `request_animation_frame`:
if let Err(err) = runner_ref.request_animation_frame() {
log::error!("{}", super::string_from_js_value(&err));
};
}
} else {
log::warn!("ResizeObserverContext callback: failed to lock runner");
}

View File

@@ -179,7 +179,7 @@ impl TextAgent {
if let Err(err) = self.input.focus() {
log::error!("failed to set focus: {}", super::string_from_js_value(&err));
};
}
}
pub fn blur(&self) {
@@ -191,7 +191,7 @@ impl TextAgent {
if let Err(err) = self.input.blur() {
log::error!("failed to set focus: {}", super::string_from_js_value(&err));
};
}
}
}

View File

@@ -274,7 +274,7 @@ impl WebPainter for WebPainterWgpu {
&mut encoder,
));
}
};
}
Some((output_frame, capture_buffer))
};