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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

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();
}