summaryrefslogtreecommitdiff
path: root/src/geom/linear.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/linear.rs
parent0a974d86ba921af781a6c9d75961b92351a5f28e (diff)
Remove decorum
Diffstat (limited to 'src/geom/linear.rs')
-rw-r--r--src/geom/linear.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/geom/linear.rs b/src/geom/linear.rs
index 059528e9..4a0def2f 100644
--- a/src/geom/linear.rs
+++ b/src/geom/linear.rs
@@ -11,7 +11,7 @@ pub struct Linear {
impl Linear {
/// The zero linear.
- pub fn zero() -> Self {
+ pub const fn zero() -> Self {
Self {
rel: Relative::zero(),
abs: Length::zero(),
@@ -19,7 +19,7 @@ impl Linear {
}
/// The linear with a relative part of `100%` and no absolute part.
- pub fn one() -> Self {
+ pub const fn one() -> Self {
Self {
rel: Relative::one(),
abs: Length::zero(),
@@ -27,7 +27,7 @@ impl Linear {
}
/// Create a new linear.
- pub fn new(rel: Relative, abs: Length) -> Self {
+ pub const fn new(rel: Relative, abs: Length) -> Self {
Self { rel, abs }
}