Skip to content

Commit

Permalink
Use Instant::into_std in futures::time
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jan 4, 2021
1 parent 50452e6 commit 09ea73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ where
tokio::time::interval_at(start, self.0)
};

stream.map(|_| std::time::Instant::now()).boxed()
stream.map(tokio::time::Instant::into_std).boxed()
}
}

0 comments on commit 09ea73b

Please sign in to comment.