summaryrefslogtreecommitdiff
path: root/src/geom/spec.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-11-22 15:50:35 +0100
committerLaurenz <laurmaedje@gmail.com>2021-11-22 15:50:35 +0100
commit02f114d072ffba72c5b18953f2959eac4dee1612 (patch)
treef3e62020a572f22d98d853649237472c2fd1d407 /src/geom/spec.rs
parent0a974d86ba921af781a6c9d75961b92351a5f28e (diff)
Remove decorum
Diffstat (limited to 'src/geom/spec.rs')
-rw-r--r--src/geom/spec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geom/spec.rs b/src/geom/spec.rs
index 82bedf9e..576c1c89 100644
--- a/src/geom/spec.rs
+++ b/src/geom/spec.rs
@@ -11,7 +11,7 @@ pub struct Spec<T> {
impl<T> Spec<T> {
/// Create a new instance from the two components.
- pub fn new(x: T, y: T) -> Self {
+ pub const fn new(x: T, y: T) -> Self {
Self { x, y }
}