Skip to content

Commit

Permalink
clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cowlicks committed Jan 8, 2025
1 parent d25736c commit e9f387e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/traverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ async fn make_child_key_index_iter(
}

impl TraverseConfig {
fn in_bounds(&self, value: &Vec<u8>) -> bool {
fn in_bounds(&self, value: &[u8]) -> bool {
// TODO impl Ord for LimitValue and remove the expects
match self
.min_value
Expand Down Expand Up @@ -308,7 +308,7 @@ async fn get_child_stream<'a>(
Ok(Traverse::new(child, config))
}

impl<'a> Stream for Traverse<'a> {
impl Stream for Traverse<'_> {
type Item = TreeItem;
#[tracing::instrument(skip(self, cx))]
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
Expand Down

0 comments on commit e9f387e

Please sign in to comment.