Remove unnecessary simd-json feature gate (#252)
* Remove unneccessary simd-json feature gate * Fix redundant closure warning
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user