diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-11-22 15:50:35 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-11-22 15:50:35 +0100 |
| commit | 02f114d072ffba72c5b18953f2959eac4dee1612 (patch) | |
| tree | f3e62020a572f22d98d853649237472c2fd1d407 /src/geom/spec.rs | |
| parent | 0a974d86ba921af781a6c9d75961b92351a5f28e (diff) | |
Remove decorum
Diffstat (limited to 'src/geom/spec.rs')
| -rw-r--r-- | src/geom/spec.rs | 2 |
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 } } |
