cetra3 commented on code in PR #10317:
URL: https://github.com/apache/arrow-rs/pull/10317#discussion_r3584134804


##########
arrow-buffer/src/buffer/mutable.rs:
##########
@@ -140,13 +174,13 @@ impl MutableBuffer {
                 NonNull::new(raw_ptr).unwrap_or_else(|| 
handle_alloc_error(layout))

Review Comment:
   I.e, in my PR I had a simple match statement:
   
   ```rust
                   match NonNull::new(raw_ptr) {
                       Some(data) => data,
                       None => return Err(TryReserveError::new(layout.size())),
                   }
   ```



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