Skip to content

Commit 573dc4c

Browse files
committed
benchmarks: clippy
1 parent 8fad0cb commit 573dc4c

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

bench/simdjson-utf8/build.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ fn get_cpp_link_stdlib() -> Option<String> {
1111
let target = env::var("TARGET").unwrap();
1212
if target.contains("msvc") {
1313
None
14-
} else if target.contains("apple") {
15-
Some("c++".to_string())
16-
} else if target.contains("freebsd") {
17-
Some("c++".to_string())
18-
} else if target.contains("openbsd") {
14+
} else if target.contains("apple")
15+
|| target.contains("freebsd")
16+
|| target.contains("openbsd")
17+
{
1918
Some("c++".to_string())
2019
} else {
2120
Some("stdc++".to_string())
@@ -31,7 +30,7 @@ fn main() {
3130

3231
eprintln!("download");
3332
assert!(Command::new("curl")
34-
.args(&["-L", "-o", "simdjson.tar.gz", &download_url])
33+
.args(["-L", "-o", "simdjson.tar.gz", &download_url])
3534
.current_dir(&out_path)
3635
.status()
3736
.unwrap()
@@ -40,7 +39,7 @@ fn main() {
4039

4140
eprintln!("extracting");
4241
Command::new("tar")
43-
.args(&["xzf", "simdjson.tar.gz"])
42+
.args(["xzf", "simdjson.tar.gz"])
4443
.current_dir(&out_path)
4544
.status()
4645
.unwrap();

bench/simdjson-utf8/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#![expect(non_upper_case_globals)]
21
#![expect(non_camel_case_types)]
3-
#![expect(non_snake_case)]
42
use std::os::raw::c_char;
53

64
include!(concat!(env!("OUT_DIR"), "/bindings.rs"));

0 commit comments

Comments
 (0)