Skip to content

Commit

Permalink
Removed stub DoubleEndedIterator for ListIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
tomerfiliba committed Sep 12, 2024
1 parent d7597d6 commit b253df2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 0 additions & 6 deletions src/lists.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,6 @@ impl<'a> Iterator for ListIterator<'a> {
}
}

impl<'a> DoubleEndedIterator for ListIterator<'a> {
fn next_back(&mut self) -> Option<Self::Item> {
None
}
}

#[derive(Debug)]
enum InsertToListStatus {
Created(Vec<u8>),
Expand Down
7 changes: 6 additions & 1 deletion src/queues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ struct Queue {
}

impl Queue {
fn span(&self) -> u64 {
#[allow(dead_code)]
fn span_len(&self) -> u64 {
self.tail_idx - self.head_idx
}
#[allow(dead_code)]
fn holes(&self) -> u64 {
self.span_len() - self.num_items
}
fn is_empty(&self) -> bool {
self.head_idx == self.tail_idx
}
Expand Down

0 comments on commit b253df2

Please sign in to comment.