1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Fix Lint for debug-assert (#5846)

Fixes the current ci workflow error
This commit is contained in:
Nicolas
2025-03-25 14:18:45 +01:00
committed by GitHub
parent ddf9d267fc
commit 8b62fd9286

View File

@@ -103,7 +103,10 @@ impl ImageLoader for ImageCrateLoader {
.map_err(|err| err.to_string());
log::trace!("ImageLoader - finished loading {uri:?}");
let prev = cache.lock().insert(uri, Poll::Ready(result));
debug_assert!(matches!(prev, Some(Poll::Pending)));
debug_assert!(
matches!(prev, Some(Poll::Pending)),
"Expected previous state to be Pending"
);
ctx.request_repaint();
}