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 3dc2967 commit 2efc4e2
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 2efc4e2

Please sign in to comment.