Skip to content

Commit af6c0ea

Browse files
committed
make FairRaceFuture !Unpin
1 parent 9fa3c4b commit af6c0ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/fair_race_future.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::{pin::Pin, task::Poll};
1+
use std::{marker::PhantomPinned, pin::Pin, task::Poll};
22

33
use field_projection::compat::{HasFields, p, start_proj};
44

@@ -10,6 +10,8 @@ struct FairRaceFuture<F1, F2> {
1010
f1: F1,
1111
#[pin]
1212
f2: F2,
13+
#[pin]
14+
_phantom: PhantomPinned,
1315
}
1416

1517
impl<F1, F2> Future for FairRaceFuture<F1, F2>

0 commit comments

Comments
 (0)