summaryrefslogtreecommitdiff
path: root/src/geom/align.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/align.rs
parent0a974d86ba921af781a6c9d75961b92351a5f28e (diff)
Remove decorum
Diffstat (limited to 'src/geom/align.rs')
-rw-r--r--src/geom/align.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geom/align.rs b/src/geom/align.rs
index b0cf69db..e99bebea 100644
--- a/src/geom/align.rs
+++ b/src/geom/align.rs
@@ -17,7 +17,7 @@ pub enum Align {
impl Align {
/// The axis this alignment belongs to if it is specific.
- pub fn axis(self) -> Option<SpecAxis> {
+ pub const fn axis(self) -> Option<SpecAxis> {
match self {
Self::Left => Some(SpecAxis::Horizontal),
Self::Top => Some(SpecAxis::Vertical),
@@ -28,7 +28,7 @@ impl Align {
}
/// The inverse alignment.
- pub fn inv(self) -> Self {
+ pub const fn inv(self) -> Self {
match self {
Self::Left => Self::Right,
Self::Top => Self::Bottom,