Skip to content

Commit 41077c2

Browse files
committed
Fix two warnings in build script
1 parent 2fb71a8 commit 41077c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llama-cpp-sys-2/build.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,7 @@ fn compile_metal(cx: &mut Build, cxx: &mut Build) {
500500
let common = LLAMA_PATH.join("ggml-common.h");
501501

502502
let input_file = File::open(ggml_metal_shader_path).expect("Failed to open input file");
503-
let mut output_file =
504-
File::create(&ggml_metal_shader_out_path).expect("Failed to create output file");
503+
let output_file = File::create(&ggml_metal_shader_out_path).expect("Failed to create output file");
505504

506505
let output = Command::new("sed")
507506
.arg("-e")
@@ -649,7 +648,7 @@ fn main() {
649648
push_warn_flags(&mut cx, &mut cxx);
650649
push_feature_flags(&mut cx, &mut cxx);
651650

652-
let feat_lib = if cfg!(feature = "vulkan") {
651+
let _feat_lib = if cfg!(feature = "vulkan") {
653652
Some(compile_vulkan(&mut cx, &mut cxx))
654653
} else if cfg!(feature = "cuda") {
655654
Some(compile_cuda(&mut cx, &mut cxx, featless_cxx))

0 commit comments

Comments
 (0)