Skip to content

Commit

Permalink
fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonStjernholm committed Feb 28, 2024
1 parent 2ae4c00 commit d7b859c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sources/youtube.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl YouTubeRestartable {

let reader = BufReader::new(stdout);

let lines = reader.lines().flatten().map(|line| {
let lines = reader.lines().map_while(Result::ok).map(|line| {
let entry: Value = serde_json::from_str(&line).unwrap();
entry
.get("webpage_url")
Expand Down

0 comments on commit d7b859c

Please sign in to comment.