Fix unused field warning

This commit is contained in:
Max Brunsfeld 2023-12-11 12:56:18 -08:00
parent fbfe108317
commit fdcb413e33
3 changed files with 3 additions and 7 deletions

View file

@ -136,12 +136,11 @@ impl Platform for TestPlatform {
&self,
handle: AnyWindowHandle,
options: WindowOptions,
draw: Box<dyn FnMut() -> Result<Scene>>,
_draw: Box<dyn FnMut() -> Result<Scene>>,
) -> Box<dyn crate::PlatformWindow> {
*self.active_window.lock() = Some(handle);
Box::new(TestWindow::new(
options,
draw,
self.weak.clone(),
self.active_display.clone(),
))