diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:22 +0100 |
commit | 767b1c878532924775d5be7307e5aec10872e443 (patch) | |
tree | fcce38e88c3ffdb444095a1a90aee3c62c5afb68 /stockton-render/src/draw/ui/render.rs | |
parent | e8126750633fd9ed3e682a2c889740a1f51a86f7 (diff) |
chore(all): fix lints
Diffstat (limited to 'stockton-render/src/draw/ui/render.rs')
-rw-r--r-- | stockton-render/src/draw/ui/render.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/stockton-render/src/draw/ui/render.rs b/stockton-render/src/draw/ui/render.rs index ad23dfb..02135e5 100644 --- a/stockton-render/src/draw/ui/render.rs +++ b/stockton-render/src/draw/ui/render.rs @@ -17,7 +17,6 @@ use crate::draw::texture::TextureStore; use arrayvec::ArrayVec; -use egui::Pos2; use hal::prelude::*; use hal::pso::ShaderStageFlags; @@ -26,7 +25,6 @@ use crate::draw::draw_buffers::DrawBuffers; use crate::types::*; use crate::UIState; use std::convert::TryInto; -use std::mem::transmute; use stockton_types::Vector2; pub fn do_render( @@ -45,7 +43,7 @@ pub fn do_render( &pipeline_layout, ShaderStageFlags::VERTEX, 0, - &[transmute(screen.x), transmute(screen.y)], + &[screen.x.to_bits(), screen.y.to_bits()], ); } |