diff --git a/src/vector.rs b/src/vector.rs index 9acc7b3..72366c6 100644 --- a/src/vector.rs +++ b/src/vector.rs @@ -99,7 +99,7 @@ macro_rules! impl_vector { impl $VectorN { /// Construct a new vector, using the provided values. #[inline] - pub fn new($($field: S),+) -> $VectorN { + pub const fn new($($field: S),+) -> $VectorN { $VectorN { $($field: $field),+ } } @@ -115,7 +115,7 @@ macro_rules! impl_vector { /// The short constructor. #[inline] - pub fn $constructor($($field: S),+) -> $VectorN { + pub const fn $constructor($($field: S),+) -> $VectorN { $VectorN::new($($field),+) }