aboutsummaryrefslogtreecommitdiff
path: root/src/long_mode/mod.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2024-06-23 11:56:40 -0700
committeriximeow <me@iximeow.net>2024-06-23 11:56:40 -0700
commitf951ccb3b97c88265b5a1978dacf462c1d6db697 (patch)
treea4bd0e8027625cf3cd5b48fbf51fec18e988fd2b /src/long_mode/mod.rs
parente6928294fd9eec219430a610ffe0ffb9d2cd7d23 (diff)
centralize unsafe claims and better validate
Diffstat (limited to 'src/long_mode/mod.rs')
-rw-r--r--src/long_mode/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/long_mode/mod.rs b/src/long_mode/mod.rs
index 2ccbc22..fab8fde 100644
--- a/src/long_mode/mod.rs
+++ b/src/long_mode/mod.rs
@@ -523,7 +523,7 @@ impl SaeMode {
/// assert_eq!(SaeMode::RoundUp.label(), "{ru-sae}");
/// assert_eq!(SaeMode::RoundZero.label(), "{rz-sae}");
/// ```
- pub fn label(&self) -> &'static str {
+ pub const fn label(&self) -> &'static str {
match self {
SaeMode::RoundNearest => "{rne-sae}",
SaeMode::RoundDown => "{rd-sae}",