chore: clippy

This commit is contained in:
galister
2024-03-23 15:41:54 +01:00
parent a1d3b9684d
commit e70aaa002e
5 changed files with 5 additions and 5 deletions

View File

@@ -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()))
}

View File

@@ -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 {

View File

@@ -611,7 +611,7 @@ fn run_window(window: &Arc<str>, 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);

View File

@@ -229,7 +229,7 @@ struct KeyboardData {
processes: Vec<Child>,
}
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) {

View File

@@ -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);