Skip to content

Commit e9f387e

Browse files
committed
clippy fixes
1 parent d25736c commit e9f387e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traverse.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async fn make_child_key_index_iter(
216216
}
217217

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

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

0 commit comments

Comments
 (0)