diff --git a/src/main.rs b/src/main.rs index 78575de..d227ecc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,6 +97,8 @@ fn event(app: &App, model: &mut Model, event: WindowEvent) { } if let Resized(_) = event { + // Rust borrowing rules means I need to first gather a list of handles, + // then delete them all let handles: Vec = model .engine .state