From e9f387e5c8e3694290dc92fba9f43d3637b9f53b Mon Sep 17 00:00:00 2001 From: Blake Griffith Date: Wed, 8 Jan 2025 17:21:50 -0500 Subject: [PATCH] clippy fixes --- src/traverse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/traverse.rs b/src/traverse.rs index b83a54f..dbb21f7 100644 --- a/src/traverse.rs +++ b/src/traverse.rs @@ -216,7 +216,7 @@ async fn make_child_key_index_iter( } impl TraverseConfig { - fn in_bounds(&self, value: &Vec) -> bool { + fn in_bounds(&self, value: &[u8]) -> bool { // TODO impl Ord for LimitValue and remove the expects match self .min_value @@ -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> {