Skip to content

Commit 9e874c3

Browse files
committed
make vector and scalar traits imply Send + Sync + 'static
1 parent 0750b30 commit 9e874c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/spirv-std/src/vector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use glam::{Vec3Swizzles, Vec4Swizzles};
99
/// # Safety
1010
/// Implementing this trait on non-scalar or non-vector types may break assumptions about other
1111
/// unsafe code, and should not be done.
12-
pub unsafe trait VectorOrScalar: Default {
12+
pub unsafe trait VectorOrScalar: Default + Send + Sync + 'static {
1313
/// Either the scalar component type of the vector or the scalar itself.
1414
type Scalar: Scalar;
1515

0 commit comments

Comments
 (0)