summaryrefslogtreecommitdiffstats
path: root/core/src/point.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/point.rs')
-rw-r--r--core/src/point.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/point.rs b/core/src/point.rs
index 183998dd..52307bba 100644
--- a/core/src/point.rs
+++ b/core/src/point.rs
@@ -14,7 +14,7 @@ impl Point {
/// Creates a new [`Point`] with the given coordinates.
///
/// [`Point`]: struct.Point.html
- pub fn new(x: f32, y: f32) -> Self {
+ pub const fn new(x: f32, y: f32) -> Self {
Self { x, y }
}
}