Skip to content

Commit

Permalink
Fix redundant closure warning
Browse files Browse the repository at this point in the history
  • Loading branch information
GnomedDev committed Sep 9, 2024
1 parent d3aed5d commit ed3647e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/sources/ytdl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl<'a> YoutubeDl<'a> {
.stdout
.split(|&b| b == b'\n')
.filter(|&x| (!x.is_empty()))
.map(|x| serde_json::from_slice(x))
.map(serde_json::from_slice)
.collect::<Result<Vec<Output>, _>>()
.map_err(|e| AudioStreamError::Fail(Box::new(e)))?;

Expand Down

0 comments on commit ed3647e

Please sign in to comment.