diff options
Diffstat (limited to '')
| -rw-r--r-- | core/src/vector.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/core/src/vector.rs b/core/src/vector.rs index 1c09ee3e..4c1cbfab 100644 --- a/core/src/vector.rs +++ b/core/src/vector.rs @@ -16,7 +16,7 @@ impl<T> Vector<T> {      /// Creates a new [`Vector`] with the given components.      ///      /// [`Vector`]: struct.Vector.html -    pub fn new(x: T, y: T) -> Self { +    pub const fn new(x: T, y: T) -> Self {          Self { x, y }      }  } | 
