Skip to content

Commit 876c9cc

Browse files
author
Stjepan Glavina
committed
Replace from_micros with new
1 parent 4185525 commit 876c9cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crossbeam-channel/tests/golang.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ mod nonblock {
370370

371371
#[test]
372372
fn main() {
373-
let ticker = tick(Duration::from_micros(10));
373+
let ticker = tick(Duration::new(0, 10_000)); // 10 us
374374
let sleep = || {
375375
ticker.recv().unwrap();
376376
ticker.recv().unwrap();

0 commit comments

Comments
 (0)