mbrobbel commented on code in PR #8227:
URL: https://github.com/apache/arrow-rs/pull/8227#discussion_r2349779243


##########
arrow-ipc/src/gen/Schema.rs:
##########
@@ -97,16 +97,20 @@ impl<'a> flatbuffers::Follow<'a> for MetadataVersion {
     type Inner = Self;
     #[inline]
     unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
-        let b = flatbuffers::read_scalar_at::<i16>(buf, loc);
-        Self(b)
+        unsafe {

Review Comment:
   I reverted the changes and updated `regen.sh` to handle the `gen` keyword, 
and after regenaration it seems `flatc` now adds the required `unsafe`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to