Commit Diff
- Commit:
722a7110d51abb87cec18ae8cb8226e76dc3c57e- From:
- Thomas Böhler <witcher@wiredspace.de>
- Date:
- Message:
- 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 <witcher@wiredspace.de>
- Actions:
- Patch | Tree
--- 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();
