macros: fix unresolved import in pin! (#2281)

This commit is contained in:
Hiro Saito 2020-02-29 02:36:27 +09:00 committed by GitHub
parent f0d18653a6
commit 937ae11f37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -138,7 +138,7 @@ macro_rules! pin {
)*) => { )*) => {
$( $(
let $x = $init; let $x = $init;
crate::pin!($x); $crate::pin!($x);
)* )*
}; };
} }

View File

@ -1,11 +1,9 @@
use tokio::pin;
async fn one() {} async fn one() {}
async fn two() {} async fn two() {}
#[tokio::test] #[tokio::test]
async fn multi_pin() { async fn multi_pin() {
pin! { tokio::pin! {
let f1 = one(); let f1 = one();
let f2 = two(); let f2 = two();
} }