Skip to content

Commit ceafeeb

Browse files
committed
Account some warnings to fix CI
1 parent f14f691 commit ceafeeb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ packed_simd = { version = "0.3.4", package = "packed_simd_2" }
1818
[![Travis-CI Status]][travis] <!-- [![Appveyor Status]][appveyor] --> [![Latest Version]][crates.io] [![docs]][master_docs]
1919

2020
**WARNING**: this crate only supports the most recent nightly Rust toolchain
21-
and will be superceded by [stdsimd](https://github.com/rust-lang/stdsimd).
21+
and will be superseded by [stdsimd](https://github.com/rust-lang/stdsimd).
2222

2323
## Documentation
2424

examples/aobench/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@ fn main() {
8989
for a in ALGORITHMS {
9090
error.push_str(&format!("\n- {}", a));
9191
}
92-
panic!(error);
92+
panic!("{}", error);
9393
}
9494
}

examples/fannkuch_redux/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn run<O: std::io::Write>(o: &mut O, n: usize, alg: usize) {
1010
fn main() {
1111
let n: usize =
1212
std::env::args().nth(1).expect("need one arg").parse().unwrap();
13-
assert!(3 <= n && n <= 14, "n = {} is out-of-range [3, 14]", n);
13+
assert!((3..=14).contains(&n), "n = {} is out-of-range [3, 14]", n);
1414
let alg = if let Some(v) = std::env::args().nth(2) {
1515
v.parse().unwrap()
1616
} else {

0 commit comments

Comments
 (0)