commit | d57c48480f30ff6f72100176d73834f2ea7e6a96 | [log] [tgz] |
---|---|---|
author | Christopher Schramm <git@cschramm.eu> | Tue Feb 01 11:00:40 2022 +0100 |
committer | Christopher Schramm <git@cschramm.eu> | Tue Feb 01 11:00:40 2022 +0100 |
tree | f6ef77e866c8fa2900e886256dd28377d1d79b85 | |
parent | 565960cd7b4b36d1188459d75652619971c43f7e [diff] |
Wrap next_code_point in unsafe block Fixes #368
diff --git a/sgx_tstd/src/sys_common/wtf8.rs b/sgx_tstd/src/sys_common/wtf8.rs index d37342a..dca7415 100644 --- a/sgx_tstd/src/sys_common/wtf8.rs +++ b/sgx_tstd/src/sys_common/wtf8.rs
@@ -825,7 +825,9 @@ #[inline] fn next(&mut self) -> Option<CodePoint> { - next_code_point(&mut self.bytes).map(|c| CodePoint { value: c }) + unsafe { + next_code_point(&mut self.bytes).map(|c| CodePoint { value: c }) + } } #[inline]