Skip to content

Commit 32c4820

Browse files
committed
Denote that simd_json is unsafe
1 parent 488176e commit 32c4820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/json.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use simd_json;
77

88
pub fn from_str<'a, S: serde::Deserialize<'a>>(buffer: &'a mut str) -> Result<S, std::io::Error> {
99
#[cfg(feature = "simd")]
10-
{
10+
unsafe {
1111
simd_json::serde::from_str::<S>(buffer)
1212
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
1313
}

0 commit comments

Comments
 (0)