Skip to content

Commit fb8e8e2

Browse files
committed
Fix two warnings in build script
1 parent 4c3de32 commit fb8e8e2

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
@@ -507,8 +507,7 @@ fn compile_metal(cx: &mut Build, cxx: &mut Build) {
507507
let common = LLAMA_PATH.join("ggml-common.h");
508508

509509
let input_file = File::open(ggml_metal_shader_path).expect("Failed to open input file");
510-
let mut output_file =
511-
File::create(&ggml_metal_shader_out_path).expect("Failed to create output file");
510+
let output_file = File::create(&ggml_metal_shader_out_path).expect("Failed to create output file");
512511

513512
let output = Command::new("sed")
514513
.arg("-e")
@@ -656,7 +655,7 @@ fn main() {
656655
push_warn_flags(&mut cx, &mut cxx);
657656
push_feature_flags(&mut cx, &mut cxx);
658657

659-
let feat_lib = if cfg!(feature = "vulkan") {
658+
let _feat_lib = if cfg!(feature = "vulkan") {
660659
Some(compile_vulkan(&mut cx, &mut cxx))
661660
} else if cfg!(feature = "cuda") {
662661
Some(compile_cuda(&mut cx, &mut cxx, featless_cxx))

0 commit comments

Comments
 (0)