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