remove tinyvec since we already have smallvec
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -4209,7 +4209,6 @@ dependencies = [
|
||||
"smallvec",
|
||||
"strum",
|
||||
"thiserror",
|
||||
"tinyvec",
|
||||
"vulkano",
|
||||
"vulkano-shaders",
|
||||
"winit",
|
||||
|
||||
@@ -38,7 +38,6 @@ serde_yaml = "0.9.25"
|
||||
smallvec = "1.11.0"
|
||||
strum = { version = "0.25.0", features = ["derive"] }
|
||||
thiserror = "1.0.56"
|
||||
tinyvec = "1.6.0"
|
||||
vulkano = { git = "https://github.com/vulkano-rs/vulkano", rev = "94f50f1" }
|
||||
vulkano-shaders = { git = "https://github.com/vulkano-rs/vulkano", rev = "94f50f1" }
|
||||
winit = "0.29.10"
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use std::{collections::VecDeque, time::Instant};
|
||||
|
||||
use glam::{Affine3A, Vec2, Vec3A};
|
||||
use tinyvec::array_vec;
|
||||
|
||||
#[cfg(feature = "openvr")]
|
||||
use ovr_overlay::TrackedDeviceIndex;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
|
||||
use crate::state::AppState;
|
||||
|
||||
@@ -341,7 +341,7 @@ impl Pointer {
|
||||
where
|
||||
O: Default,
|
||||
{
|
||||
let mut hits = array_vec!([RayHit; 8]);
|
||||
let mut hits: SmallVec<[RayHit; 8]> = smallvec!();
|
||||
|
||||
for overlay in overlays.iter() {
|
||||
if !overlay.state.want_visible {
|
||||
@@ -352,7 +352,7 @@ impl Pointer {
|
||||
if hit.dist.is_infinite() || hit.dist.is_nan() {
|
||||
continue;
|
||||
}
|
||||
hits.try_push(hit);
|
||||
hits.push(hit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user