Skip to content

Commit

Permalink
add more inlines.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Sep 1, 2024
1 parent 31356d8 commit 5d2ac01
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -549,10 +549,12 @@ impl<T> Blocks<T> {
}
}

#[inline]
pub fn current(&self) -> Option<&T> {
self.current.as_ref()
}

#[inline]
pub fn current_mut(&mut self) -> Option<&mut T> {
self.current.as_mut()
}
Expand Down

0 comments on commit 5d2ac01

Please sign in to comment.