Skip to content

Commit 8f95918

Browse files
committed
fix Delay::when
Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
1 parent b3ac5b8 commit 8f95918

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/delay.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ impl Delay {
4242

4343
/// Return the `Instant` when this delay will fire.
4444
#[inline]
45-
pub fn when(&self, timeout: &Delay) -> Instant {
46-
timeout.when
45+
pub fn when(&self) -> Instant {
46+
self.when
4747
}
4848

4949
/// Creates a new future which will fire at the time specified by `at`.

0 commit comments

Comments
 (0)