summaryrefslogtreecommitdiff
path: root/ext/web/timers.rs
diff options
context:
space:
mode:
authorlinbingquan <695601626@qq.com>2022-12-18 06:20:15 +0800
committerGitHub <noreply@github.com>2022-12-17 23:20:15 +0100
commitf46df3e35940fc78163945eed33e58fafed0b06b (patch)
treec22233bf2019a254045ad0af533225d3f02a402f /ext/web/timers.rs
parentf2c9cc500c84a3c6051823cd3ae33d6b4c1f6266 (diff)
chore: update to Rust 1.66.0 (#17078)
Diffstat (limited to 'ext/web/timers.rs')
-rw-r--r--ext/web/timers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/web/timers.rs b/ext/web/timers.rs
index 5b1310792..6026b7c3b 100644
--- a/ext/web/timers.rs
+++ b/ext/web/timers.rs
@@ -51,7 +51,7 @@ where
// SAFETY: buffer is at least 8 bytes long.
unsafe { std::slice::from_raw_parts_mut(buf.as_mut_ptr() as _, 2) };
buf[0] = seconds as u32;
- buf[1] = subsec_nanos as u32;
+ buf[1] = subsec_nanos;
}
pub struct TimerHandle(Rc<CancelHandle>);