diff --git a/agb-fixnum/src/lib.rs b/agb-fixnum/src/lib.rs index 85745b61..43ad8698 100644 --- a/agb-fixnum/src/lib.rs +++ b/agb-fixnum/src/lib.rs @@ -980,7 +980,7 @@ impl Vector2D { /// assert_eq!(v.x, 1); /// assert_eq!(v.y, 2); /// ``` - pub fn new(x: T, y: T) -> Self { + pub const fn new(x: T, y: T) -> Self { Vector2D { x, y } }