diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-31 22:59:14 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-01 00:00:36 +0200 |
| commit | 3c92bad9a7cd6b880de197806443ffcce2cac9d8 (patch) | |
| tree | 1faf79c66e23bc37711af16ad690a9878e28d348 /src/image.rs | |
| parent | fbd3d191137aac8188ab8c6503d257d65d873972 (diff) | |
Pretty-printed diagnostics with traceback
Diffstat (limited to 'src/image.rs')
| -rw-r--r-- | src/image.rs | 4 |
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 } } |
