mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-25 05:03:08 +00:00
safety comment
This commit is contained in:
@@ -54,6 +54,10 @@ impl<const N: usize> Buf<N> {
|
||||
}
|
||||
}
|
||||
|
||||
/// SAFETY:
|
||||
///
|
||||
/// The [`Self::allocation`] is stable becauses boxes are stable.
|
||||
///
|
||||
unsafe impl<const N: usize> tokio_epoll_uring::IoBuf for Buf<N> {
|
||||
fn stable_ptr(&self) -> *const u8 {
|
||||
self.allocation.as_ptr()
|
||||
|
||||
Reference in New Issue
Block a user