summaryrefslogtreecommitdiff
path: root/src/image.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.rs')
-rw-r--r--src/image.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.rs b/src/image.rs
index 93b95bda..f041fac1 100644
--- a/src/image.rs
+++ b/src/image.rs
@@ -112,12 +112,12 @@ impl ImageId {
///
/// 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
}
}