summaryrefslogtreecommitdiff
path: root/tests/more_defaults_generated.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/more_defaults_generated.rs')
-rw-r--r--tests/more_defaults_generated.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/more_defaults_generated.rs b/tests/more_defaults_generated.rs
index 42b3eff7..be818bc2 100644
--- a/tests/more_defaults_generated.rs
+++ b/tests/more_defaults_generated.rs
@@ -59,7 +59,9 @@ impl<'a> flatbuffers::Follow<'a> for ABC {
type Inner = Self;
#[inline]
fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
- let b = flatbuffers::read_scalar_at::<i32>(buf, loc);
+ let b = unsafe {
+ flatbuffers::read_scalar_at::<i32>(buf, loc)
+ };
Self(b)
}
}
@@ -68,7 +70,7 @@ impl flatbuffers::Push for ABC {
type Output = ABC;
#[inline]
fn push(&self, dst: &mut [u8], _rest: &[u8]) {
- flatbuffers::emplace_scalar::<i32>(dst, self.0);
+ unsafe { flatbuffers::emplace_scalar::<i32>(dst, self.0); }
}
}