Skip to content

Commit

Permalink
Add some missing inline annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Westerlind committed Oct 12, 2020
1 parent 2dc9bb2 commit 57b9ebe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/raw/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2082,6 +2082,7 @@ struct RawIterHashInner<'a> {
}

impl<'a, T> RawIterHash<'a, T> {
#[cfg_attr(feature = "inline-more", inline)]
fn new(table: &'a RawTable<T>, hash: u64) -> Self {
RawIterHash {
inner: RawIterHashInner::new(&table.table, hash),
Expand Down Expand Up @@ -2115,6 +2116,7 @@ impl<'a> RawIterHashInner<'a> {
impl<'a, T> Iterator for RawIterHash<'a, T> {
type Item = Bucket<T>;

#[cfg_attr(feature = "inline-more", inline)]
fn next(&mut self) -> Option<Bucket<T>> {
unsafe {
match self.inner.next() {
Expand Down

0 comments on commit 57b9ebe

Please sign in to comment.