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 and FelixMcFelix committed Nov 26, 2024
1 parent 39a6d1d commit 1686e72
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 @@ -168,7 +168,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 1686e72

Please sign in to comment.