fix compiler warning

This commit is contained in:
Gered 2023-03-09 19:10:31 -05:00
parent 2e57311fe0
commit 06f055c042

View file

@ -96,7 +96,7 @@ impl SystemResourcesConfig for DosLikeConfig {
// turn the window into a canvas (under the hood, an SDL Renderer that owns the window) // turn the window into a canvas (under the hood, an SDL Renderer that owns the window)
let mut canvas_builder = window.into_canvas(); let canvas_builder = window.into_canvas();
let mut sdl_canvas = match canvas_builder.build() { let mut sdl_canvas = match canvas_builder.build() {
Ok(canvas) => canvas, Ok(canvas) => canvas,
Err(error) => return Err(SystemResourcesError::SDLError(error.to_string())), Err(error) => return Err(SystemResourcesError::SDLError(error.to_string())),