You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/05/18 21:44:01 UTC

[GitHub] [arrow-rs] gangliao opened a new issue #320: pub(super) in into_buffer(self)

gangliao opened a new issue #320:
URL: https://github.com/apache/arrow-rs/issues/320


   In `mutable.rs`, `pub(super)` is avoidable.
   
   ```rust
       #[inline]
       pub(super) fn into_buffer(self) -> Buffer {
           let bytes = unsafe {
               Bytes::new(self.data, self.len, Deallocation::Native(self.capacity))
           };
           std::mem::forget(self);
           Buffer::from_bytes(bytes)
       }
   ```
   


-- 
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.

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