mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Forbid uses of unwrap() in the code (#7795)
This commit is contained in:
@@ -28,6 +28,7 @@ impl EguiGlow {
|
||||
native_pixels_per_point: Option<f32>,
|
||||
dithering: bool,
|
||||
) -> Self {
|
||||
#[expect(clippy::unwrap_used)] // TODO(emilk): return error instead of unwrap
|
||||
let painter = crate::Painter::new(gl, "", shader_version, dithering)
|
||||
.map_err(|err| {
|
||||
log::error!("error occurred in initializing painter:\n{err}");
|
||||
|
||||
Reference in New Issue
Block a user