From 13d1d5214d7d7043f22dee0837fd6600aaa50797 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:23 +0100 Subject: refactor(all): various cleanup --- examples/render-quad/src/main.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'examples/render-quad/src') diff --git a/examples/render-quad/src/main.rs b/examples/render-quad/src/main.rs index 0cc8b83..6e192dc 100644 --- a/examples/render-quad/src/main.rs +++ b/examples/render-quad/src/main.rs @@ -80,7 +80,7 @@ fn main() { } } -fn try_main<'a>() -> Result<()> { +fn try_main() -> Result<()> { // Initialise logger simplelog::TermLogger::init( log::LevelFilter::Debug, @@ -134,7 +134,7 @@ fn try_main<'a>() -> Result<()> { })); // Create the UI State - let ui = UiState::new(); + let ui = UiState::default(); // Create the input manager let manager = { @@ -196,10 +196,7 @@ fn try_main<'a>() -> Result<()> { ( LevelDrawPassConfig { active_camera: player, - tex_resolver: FsResolver::new( - Path::new("./examples/render-quad/textures"), - map.clone(), - ), + tex_resolver: FsResolver::new(Path::new("./examples/render-quad/textures"), map), }, (), ), -- cgit v1.2.3