summaryrefslogtreecommitdiff
path: root/src/font.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.rs')
-rw-r--r--src/font.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/font.rs b/src/font.rs
index 94548699..a609e934 100644
--- a/src/font.rs
+++ b/src/font.rs
@@ -325,12 +325,12 @@ impl FaceId {
///
/// This should only be called with values returned by
/// [`into_raw`](Self::into_raw).
- pub fn from_raw(v: u64) -> Self {
+ pub const fn from_raw(v: u64) -> Self {
Self(v)
}
/// Convert into the raw underlying value.
- pub fn into_raw(self) -> u64 {
+ pub const fn into_raw(self) -> u64 {
self.0
}
}