Silence sum_tree warnings

* Remove unused enum variant
* Add #[allow(unused)] for non-trivial methods
This commit is contained in:
Max Brunsfeld 2021-04-02 14:39:56 -07:00
parent 575f5910fa
commit 32500e21f6
2 changed files with 5 additions and 3 deletions

View file

@ -133,6 +133,7 @@ where
None
}
#[allow(unused)]
pub fn prev(&mut self) {
assert!(self.did_seek, "Must seek before calling this method");
@ -385,6 +386,7 @@ where
self.seek_internal::<()>(pos, bias, &mut SeekAggregate::None)
}
#[allow(unused)]
pub fn seek_forward(&mut self, pos: &S, bias: SeekBias) -> bool {
self.seek_internal::<()>(pos, bias, &mut SeekAggregate::None)
}