We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 488176e commit 32c4820Copy full SHA for 32c4820
src/json.rs
@@ -7,7 +7,7 @@ use simd_json;
7
8
pub fn from_str<'a, S: serde::Deserialize<'a>>(buffer: &'a mut str) -> Result<S, std::io::Error> {
9
#[cfg(feature = "simd")]
10
- {
+ unsafe {
11
simd_json::serde::from_str::<S>(buffer)
12
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
13
}
0 commit comments