mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-16 00:00:12 +02:00
This switches from using the tokio-futures facade to referencing futures-* crates directly.
8 lines
190 B
Rust
8 lines
190 B
Rust
/// A macro to reduce some of the boilerplate for projecting from
|
|
/// `Pin<&mut T>` to `Pin<&mut T.field>`
|
|
macro_rules! pin {
|
|
($e:expr) => {
|
|
std::pin::Pin::new(&mut $e)
|
|
};
|
|
}
|