Update crossbeam-channel to 0.5.2
Test: cd external/rust/crates && atest --host -c
Change-Id: I1dd8965902969ea654a06d17e78181d99dd7bb7e
diff --git a/examples/fibonacci.rs b/examples/fibonacci.rs
index cf22b7a..e6f5e89 100644
--- a/examples/fibonacci.rs
+++ b/examples/fibonacci.rs
@@ -10,7 +10,7 @@
while sender.send(x).is_ok() {
let tmp = x;
x = y;
- y = tmp + y;
+ y += tmp;
}
}
diff --git a/examples/stopwatch.rs b/examples/stopwatch.rs
index 98895c5..3a7578e 100644
--- a/examples/stopwatch.rs
+++ b/examples/stopwatch.rs
@@ -33,11 +33,7 @@
// Prints the elapsed time.
fn show(dur: Duration) {
- println!(
- "Elapsed: {}.{:03} sec",
- dur.as_secs(),
- dur.subsec_nanos() / 1_000_000
- );
+ println!("Elapsed: {}.{:03} sec", dur.as_secs(), dur.subsec_millis());
}
let start = Instant::now();