commit 722a7110d51abb87cec18ae8cb8226e76dc3c57e from: Thomas Böhler date: Sun Aug 6 13:07:27 2023 UTC fix: Avoid possible infinite loop for `Lines` obj More information: https://rust-lang.github.io/rust-clippy/master/index.html#/lines_filter_map_ok Signed-off-by: Thomas Böhler commit - fe2be0b4d253b42d69bd45886a6e5ba874ad00d1 commit + 722a7110d51abb87cec18ae8cb8226e76dc3c57e blob - 6f90934474817e779ff2f68d5db85b57206aec68 blob + 98a61c615d01506bbdbe3ae8811ea46fd6d7f12f --- src/main.rs +++ src/main.rs @@ -72,7 +72,7 @@ async fn app_main() -> Result<(), Error> { path: &config.urls_path, })?) .lines() - .filter_map(Result::ok) + .map_while(Result::ok) .filter(|l| !l.starts_with('#')) .collect();