mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-26 00:00:16 +02:00
Update Tokio to Rust 2018 (#1082)
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
use Delay;
|
||||
|
||||
use clock;
|
||||
|
||||
use futures::{Future, Poll, Stream};
|
||||
|
||||
use crate::clock;
|
||||
use crate::Delay;
|
||||
use futures::{try_ready, Future, Poll, Stream};
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
/// A stream representing notifications at fixed interval
|
||||
@@ -56,7 +53,7 @@ impl Interval {
|
||||
|
||||
impl Stream for Interval {
|
||||
type Item = Instant;
|
||||
type Error = ::Error;
|
||||
type Error = crate::Error;
|
||||
|
||||
fn poll(&mut self) -> Poll<Option<Self::Item>, Self::Error> {
|
||||
// Wait for the delay to be done
|
||||
|
||||
Reference in New Issue
Block a user