Remove extraneous into_iter() (clippy 1.68 fix)

https://doc.rust-lang.org/std/fs/fn.read_dir.html already returns an Iterator (`ReadDir`s IntoIter implementation returns `self`)
pull/252/head
Matěj Laitl 2023-03-27 14:43:56 +02:00
parent fa43bea359
commit 55beed3c2d
1 changed files with 1 additions and 3 deletions

View File

@ -172,9 +172,7 @@ pub fn print_peer_diff(store: &DataStore, diff: &PeerDiff) {
pub fn all_installed(config_dir: &Path) -> Result<Vec<Interface>, std::io::Error> {
// All errors are bubbled up when enumerating a directory
let entries: Vec<_> = std::fs::read_dir(config_dir)?
.into_iter()
.collect::<Result<_, _>>()?;
let entries: Vec<_> = std::fs::read_dir(config_dir)?.collect::<Result<_, _>>()?;
let installed: Vec<_> = entries
.into_iter()