Skip to content

Commit

Permalink
Remove unnecessary simd-json feature gate (#252)
Browse files Browse the repository at this point in the history
* Remove unneccessary simd-json feature gate

* Fix redundant closure warning
  • Loading branch information
GnomedDev authored Sep 9, 2024
1 parent f957432 commit 92314a1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#[cfg(feature = "serenity")]
use futures::channel::mpsc::TrySendError;
#[cfg(not(feature = "simd-json"))]
pub use serde_json::Error as JsonError;
#[cfg(feature = "serenity")]
use serenity::gateway::ShardRunnerMessage;
Expand Down
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 92314a1

Please sign in to comment.