Skip to content

Commit e137bbc

Browse files
committed
Simplify code x2.
1 parent a34b805 commit e137bbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/run.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -730,15 +730,15 @@ where
730730
&self,
731731
context: GenerateContext,
732732
) -> Pin<Box<dyn Future<Output = SlotResult> + Send + Sync + '_>> {
733-
Box::pin(async move { self.queue(context).await })
733+
Box::pin(self.queue(context))
734734
}
735735

736736
#[inline]
737737
fn process<'a>(
738738
&'a self,
739739
payloads: &'a mut [Payload],
740740
) -> Pin<Box<dyn Future<Output = Result<()>> + 'a>> {
741-
Box::pin(async move { self.process(payloads).await })
741+
Box::pin(self.process(payloads))
742742
}
743743
}
744744

0 commit comments

Comments
 (0)