]> git.nega.tv - josh/narcissus/commitdiff
Fix clippy lints in stb_image build script
authorJoshua Simmons <josh@nega.tv>
Wed, 9 Nov 2022 20:56:28 +0000 (21:56 +0100)
committerJoshua Simmons <josh@nega.tv>
Wed, 9 Nov 2022 20:56:28 +0000 (21:56 +0100)
ffi/stb_image-sys/build.rs

index 00d55e8431ccceaa0ae0b7e4096ee532709abdd2..40312a423de82af03957b6924b2619a8e489ef73 100644 (file)
@@ -5,7 +5,7 @@ fn main() {
     let opt_level = std::env::var("OPT_LEVEL").unwrap();
 
     Command::new("clang")
-        .args(&[
+        .args([
             "src/stb_image.c",
             "-c",
             &format!("-O{opt_level}"),
@@ -17,8 +17,8 @@ fn main() {
         .unwrap();
 
     Command::new("llvm-ar")
-        .args(&["crus", "libstb_image.a", "stb_image.o"])
-        .current_dir(&Path::new(&out_dir))
+        .args(["crus", "libstb_image.a", "stb_image.o"])
+        .current_dir(Path::new(&out_dir))
         .status()
         .unwrap();