Skip to content

Commit

Permalink
Improve imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sergerad committed Aug 30, 2024
1 parent 9bad768 commit a3bde1f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rollup/src/sequencer.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use std::{
future::Future,
pin::Pin,
sync::{Arc, Mutex},
task::Poll,
task::{Context, Poll},
time::Duration,
};

Expand Down Expand Up @@ -108,10 +109,7 @@ impl ArcSequencer {
impl Future for ArcSequencer {
type Output = Block;

fn poll(
self: std::pin::Pin<&mut Self>,
cx: &mut std::task::Context<'_>,
) -> std::task::Poll<Self::Output> {
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let mut sequencer = self.get_mut().0.lock().unwrap();
if sequencer.block_timer.poll_tick(cx).is_ready() {
Poll::Ready(sequencer.seal())
Expand Down

0 comments on commit a3bde1f

Please sign in to comment.