aboutsummaryrefslogtreecommitdiff
path: root/examples/render-quad/src/main.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:23 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:23 +0100
commit13d1d5214d7d7043f22dee0837fd6600aaa50797 (patch)
treed2adedb0c5a0986bab28855b10aa54e8575357d8 /examples/render-quad/src/main.rs
parent6ab13f2d0cb345795f761181a06777ade61ff09c (diff)
refactor(all): various cleanup
Diffstat (limited to 'examples/render-quad/src/main.rs')
-rw-r--r--examples/render-quad/src/main.rs9
1 files changed, 3 insertions, 6 deletions
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),
},
(),
),