Skip to content

Commit

Permalink
Add #[inline] to non-generic functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kestrer committed Jan 24, 2021
1 parent 810c043 commit 33ad405
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,7 @@ struct RawIter {
index: usize,
}
impl RawIter {
#[inline]
fn new() -> Self {
Self {
yielded: 0,
Expand Down Expand Up @@ -411,6 +412,7 @@ impl RawIter {
}
}

#[inline]
fn next_bucket(&mut self) {
if self.bucket != 0 {
self.bucket_size <<= 1;
Expand Down

0 comments on commit 33ad405

Please sign in to comment.