diff --git a/src/backend/common.rs b/src/backend/common.rs index c90c75d..16d963d 100644 --- a/src/backend/common.rs +++ b/src/backend/common.rs @@ -325,7 +325,7 @@ pub fn raycast_cylinder( let x_angle = (hit_local.x / r).asin(); hit_local.x = x_angle / max_angle; - hit_local.y = hit_local.y / size; + hit_local.y /= size; Some((t, hit_local.xy())) } diff --git a/src/backend/openvr/playspace.rs b/src/backend/openvr/playspace.rs index 2ada937..c1d15ca 100644 --- a/src/backend/openvr/playspace.rs +++ b/src/backend/openvr/playspace.rs @@ -75,7 +75,7 @@ impl PlayspaceMover { } }); - data.pose = data.pose * space_transform; + data.pose *= space_transform; data.hand_pose = new_hand; if self.universe == ETrackingUniverseOrigin::TrackingUniverseStanding { diff --git a/src/gui/modular/button.rs b/src/gui/modular/button.rs index 1b4c706..b457a78 100644 --- a/src/gui/modular/button.rs +++ b/src/gui/modular/button.rs @@ -611,7 +611,7 @@ fn run_window(window: &Arc, action: &WindowAction, app: &mut AppState) { } } -const THUMP_AUDIO_WAV: &'static [u8] = include_bytes!("../../res/380885.wav"); +const THUMP_AUDIO_WAV: &[u8] = include_bytes!("../../res/380885.wav"); fn audio_thump(app: &mut AppState) { app.audio.play(THUMP_AUDIO_WAV); diff --git a/src/overlays/keyboard.rs b/src/overlays/keyboard.rs index 302e6fa..ef4ee28 100644 --- a/src/overlays/keyboard.rs +++ b/src/overlays/keyboard.rs @@ -229,7 +229,7 @@ struct KeyboardData { processes: Vec, } -const KEY_AUDIO_WAV: &'static [u8] = include_bytes!("../res/421581.wav"); +const KEY_AUDIO_WAV: &[u8] = include_bytes!("../res/421581.wav"); impl KeyboardData { fn key_click(&mut self, app: &mut AppState) { diff --git a/src/overlays/toast.rs b/src/overlays/toast.rs index f425124..0567422 100644 --- a/src/overlays/toast.rs +++ b/src/overlays/toast.rs @@ -18,7 +18,7 @@ use crate::{ const FONT_SIZE: isize = 16; const PADDING: (f32, f32) = (25., 7.); const PIXELS_TO_METERS: f32 = 1. / 2000.; -const TOAST_AUDIO_WAV: &'static [u8] = include_bytes!("../res/557297.wav"); +const TOAST_AUDIO_WAV: &[u8] = include_bytes!("../res/557297.wav"); static AUTO_INCREMENT: AtomicUsize = AtomicUsize::new(0);