diff --git a/src/protocol/arena.rs b/src/protocol/arena.rs index 10c90a1186f6bcb9d75f73502bc6b69fc305cb0d..6afdc88e49dc4a56b392a9dc204d7a664cb8713d 100644 --- a/src/protocol/arena.rs +++ b/src/protocol/arena.rs @@ -10,9 +10,9 @@ pub struct Id { } impl Id { - pub(crate) fn new_invalid() -> Self { Self{ index: -1, _phantom: Default::default() } } - pub(crate) fn new(index: i32) -> Self { Self{ index, _phantom: Default::default() } } - pub(crate) fn is_invalid(&self) -> bool { self.index < 0 } + #[inline] pub(crate) fn new_invalid() -> Self { Self{ index: -1, _phantom: Default::default() } } + #[inline] pub(crate) fn new(index: i32) -> Self { Self{ index, _phantom: Default::default() } } + #[inline] pub(crate) fn is_invalid(&self) -> bool { self.index < 0 } } #[derive(Debug)]