adamreichold opened a new issue, #10570:
URL: https://github.com/apache/arrow-rs/issues/10570

   ### Describe the bug
   
   The `AsRef` impl for `Buffer` is currently provided for shared references 
`&Buffer` instead of `Buffer` itself which is not necessary as the signature of 
`as_ref` already provides the necessary indirection. It is also unhelpful for 
integration with the wider ecosystem which generally expects the more general 
implementation.
   
   ### To Reproduce
   
   Try calling `bytes::Bytes::from_owner(buffer)` with `buffer: 
arrow_buffer::Buffer` which will fail due to an unsatisfied trait bound.
   
   ### Expected behavior
   
   An `impl AsRef<[u8]> for Buffer` is available.
   
   ### Additional context
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to