sync: handle possibly dangling reference safely (#5812)

This commit is contained in:
Consoli
2023-06-28 09:10:18 +02:00
committed by GitHub
parent ce23db6bc7
commit 1bfe778acb
5 changed files with 242 additions and 155 deletions
+8
View File
@@ -0,0 +1,8 @@
mod maybe_dangling;
#[cfg(any(feature = "io", feature = "codec"))]
mod poll_buf;
pub(crate) use maybe_dangling::MaybeDangling;
#[cfg(any(feature = "io", feature = "codec"))]
#[cfg_attr(not(feature = "io"), allow(unreachable_pub))]
pub use poll_buf::{poll_read_buf, poll_write_buf};