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

This commit is contained in:
Hiro Saito
2020-02-28 09:36:27 -08:00
committed by GitHub
parent f0d18653a6
commit 937ae11f37
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ macro_rules! pin {
)*) => {
$(
let $x = $init;
crate::pin!($x);
$crate::pin!($x);
)*
};
}
+1 -3
View File
@@ -1,11 +1,9 @@
use tokio::pin;
async fn one() {}
async fn two() {}
#[tokio::test]
async fn multi_pin() {
pin! {
tokio::pin! {
let f1 = one();
let f2 = two();
}