From 55beed3c2d09813f150ded5bc1aeaa7f6ce5ab44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Laitl?= Date: Mon, 27 Mar 2023 14:43:56 +0200 Subject: [PATCH] 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`) --- client/src/util.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/util.rs b/client/src/util.rs index edf365e..72112b1 100644 --- a/client/src/util.rs +++ b/client/src/util.rs @@ -172,9 +172,7 @@ pub fn print_peer_diff(store: &DataStore, diff: &PeerDiff) { pub fn all_installed(config_dir: &Path) -> Result, std::io::Error> { // All errors are bubbled up when enumerating a directory - let entries: Vec<_> = std::fs::read_dir(config_dir)? - .into_iter() - .collect::>()?; + let entries: Vec<_> = std::fs::read_dir(config_dir)?.collect::>()?; let installed: Vec<_> = entries .into_iter()