Skip to content

Commit db44636

Browse files
authored
Merge pull request #28 from ileixe/master
Change as_u64() to const
2 parents 065c00b + 58cf4a5 commit db44636

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl ByteSize {
167167
}
168168

169169
#[inline(always)]
170-
pub fn as_u64(&self) -> u64 {
170+
pub const fn as_u64(&self) -> u64 {
171171
self.0
172172
}
173173

0 commit comments

Comments
 (0)