Remove Simd-json (#228)

This mirrors the serenity pr https://github.com/serenity-rs/serenity/pull/2735.
This commit is contained in:
Erk
2024-02-29 07:29:20 +01:00
committed by Kyle Simpson
parent c4331c451f
commit c81f2a9578
11 changed files with 32 additions and 72 deletions

View File

@@ -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)))?;