Skip to content

Commit ea4f1c4

Browse files
authored
Merge pull request #38 from async-rs/fix-when
fix Delay::when
2 parents b3ac5b8 + 8f95918 commit ea4f1c4

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)