Skip to content

Commit

Permalink
Account some warnings to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Mar 17, 2021
1 parent f14f691 commit ceafeeb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ packed_simd = { version = "0.3.4", package = "packed_simd_2" }
[![Travis-CI Status]][travis] <!-- [![Appveyor Status]][appveyor] --> [![Latest Version]][crates.io] [![docs]][master_docs]

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

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion examples/aobench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ fn main() {
for a in ALGORITHMS {
error.push_str(&format!("\n- {}", a));
}
panic!(error);
panic!("{}", error);
}
}
2 changes: 1 addition & 1 deletion examples/fannkuch_redux/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn run<O: std::io::Write>(o: &mut O, n: usize, alg: usize) {
fn main() {
let n: usize =
std::env::args().nth(1).expect("need one arg").parse().unwrap();
assert!(3 <= n && n <= 14, "n = {} is out-of-range [3, 14]", n);
assert!((3..=14).contains(&n), "n = {} is out-of-range [3, 14]", n);
let alg = if let Some(v) = std::env::args().nth(2) {
v.parse().unwrap()
} else {
Expand Down

0 comments on commit ceafeeb

Please sign in to comment.