Skip to content

Commit b18d1c0

Browse files
committed
Use Instant::into_std in futures::time
1 parent 73e0773 commit b18d1c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

futures/src/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ where
8181
tokio::time::interval_at(start, self.0)
8282
};
8383

84-
stream.map(|_| std::time::Instant::now()).boxed()
84+
stream.map(tokio::time::Instant::into_std).boxed()
8585
}
8686
}

0 commit comments

Comments
 (0)