diff --git a/src/base/dimension.rs b/src/base/dimension.rs index 4be97586..b1b700d7 100644 --- a/src/base/dimension.rs +++ b/src/base/dimension.rs @@ -252,14 +252,17 @@ pub trait ToTypenum { } unsafe impl Dim for Const { + #[inline] fn try_to_usize() -> Option { Some(T) } + #[inline] fn value(&self) -> usize { T } + #[inline] fn from_usize(dim: usize) -> Self { assert_eq!(dim, T); Self