Avoid double borrow in tests by drawing windows explicitly in flush_effects

Co-authored-by: Antonio <antonio@zed.dev>
This commit is contained in:
Max Brunsfeld
2023-12-11 12:37:10 -08:00
co-authored by Antonio
parent 9b94f1483a
commit fbfe108317
3 changed files with 16 additions and 3 deletions
+1 -1
View File
@@ -168,7 +168,7 @@ impl PlatformWindow for TestWindow {
}
fn invalidate(&self) {
(self.draw.lock())().unwrap();
// (self.draw.lock())().unwrap();
}
fn sprite_atlas(&self) -> sync::Arc<dyn crate::PlatformAtlas> {