diff options
Diffstat (limited to 'src/loading/mod.rs')
| -rw-r--r-- | src/loading/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loading/mod.rs b/src/loading/mod.rs index ab52439d..65eb25c6 100644 --- a/src/loading/mod.rs +++ b/src/loading/mod.rs @@ -40,12 +40,12 @@ pub struct FileId(u64); impl FileId { /// Create a file id from a raw value. - 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 } } |
