Remove Simd-json (#228)
This mirrors the serenity pr https://github.com/serenity-rs/serenity/pull/2735.
This commit is contained in:
@@ -164,11 +164,11 @@ impl<'a> YoutubeDl<'a> {
|
||||
));
|
||||
}
|
||||
|
||||
// NOTE: must be split_mut for simd-json.
|
||||
let out = output
|
||||
.stdout
|
||||
.split_mut(|&b| b == b'\n')
|
||||
.filter_map(|x| (!x.is_empty()).then(|| crate::json::from_slice(x)))
|
||||
.split(|&b| b == b'\n')
|
||||
.filter(|&x| (!x.is_empty()))
|
||||
.map(|x| serde_json::from_slice(x))
|
||||
.collect::<Result<Vec<Output>, _>>()
|
||||
.map_err(|e| AudioStreamError::Fail(Box::new(e)))?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user