Skip to content

Commit 4ca47a4

Browse files
committed
fixup: ignore new clippy warning
1 parent 14b1dca commit 4ca47a4

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"-W",
1919
"clippy::style",
2020
"-W",
21-
"clippy::pedantic",
21+
"clippy::pedantic"
2222
],
2323
"evenBetterToml.formatter.allowedBlankLines": 1,
2424
"evenBetterToml.formatter.columnWidth": 130,

contrib/bencode/src/access/list.rs

+8
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ impl<'a, V: 'a> IndexMut<usize> for &'a mut dyn BListAccess<V> {
4545
}
4646
}
4747

48+
impl<'a, V: 'a> dyn BListAccess<V> {
49+
pub fn iter(&'a self) -> impl Iterator<Item = &'a V> {
50+
self.into_iter()
51+
}
52+
}
53+
54+
#[allow(unknown_lints)]
55+
#[allow(clippy::into_iter_without_iter)]
4856
impl<'a, V: 'a> IntoIterator for &'a dyn BListAccess<V> {
4957
type Item = &'a V;
5058
type IntoIter = BListIter<'a, V>;

contrib/bencode/src/error.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(unknown_lints)]
2+
#![allow(clippy::iter_without_into_iter)]
13
use error_chain::error_chain;
24

35
error_chain! {

0 commit comments

Comments
 (0)