diff options
author | HampusM <hampus@hampusmat.com> | 2024-05-18 16:57:03 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-05-18 16:57:03 +0200 |
commit | d139e19bd287ba340b923136c266a77367b83990 (patch) | |
tree | 4d8e469ea2ebf9445236c0a2b3d9b392460282f5 /engine/src/renderer | |
parent | d7675fd0119afe5e9cc872ce8bbb2977a16f0b26 (diff) |
refactor(engine): fix clippy lints
Diffstat (limited to 'engine/src/renderer')
-rw-r--r-- | engine/src/renderer/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/src/renderer/mod.rs b/engine/src/renderer/mod.rs index f9082fc..e32f308 100644 --- a/engine/src/renderer/mod.rs +++ b/engine/src/renderer/mod.rs @@ -81,10 +81,10 @@ fn initialize(window: Single<Window>) let window_size = window.size().expect("Failed to get window size"); - set_viewport(&Vec2 { x: 0, y: 0 }, window_size); + set_viewport(Vec2 { x: 0, y: 0 }, window_size); window.set_framebuffer_size_callback(|new_window_size| { - set_viewport(&Vec2::ZERO, new_window_size); + set_viewport(Vec2::ZERO, new_window_size); }); enable(Capability::DepthTest); @@ -177,7 +177,7 @@ struct GlObjects textures: HashMap<TextureId, GlTexture>, } -fn set_viewport(position: &Vec2<u32>, size: Dimens<u32>) +fn set_viewport(position: Vec2<u32>, size: Dimens<u32>) { crate::opengl::set_viewport(position, size); } |