From 749c18cfeefdc7e284c4f02b29d28b647bdbb692 Mon Sep 17 00:00:00 2001 From: Zero Date: Mon, 28 Aug 2023 17:09:46 -0600 Subject: [PATCH] `cargo fmt` --- src/whisper_ctx.rs | 7 ++++++- sys/build.rs | 1 - 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/whisper_ctx.rs b/src/whisper_ctx.rs index a144a96..572e57a 100644 --- a/src/whisper_ctx.rs +++ b/src/whisper_ctx.rs @@ -79,7 +79,12 @@ impl WhisperContext { /// # C++ equivalent /// `int whisper_ctx_init_openvino_encoder(struct whisper_context * ctx, const char * model_path, const char * device, const char * cache_dir);` #[cfg(feature = "openvino")] - pub fn init_openvino_encoder(&mut self, model_path: Option<&str>, device: &str, cache_dir: Option<&str>) -> bool { + pub fn init_openvino_encoder( + &mut self, + model_path: Option<&str>, + device: &str, + cache_dir: Option<&str>, + ) -> bool { let model_path = model_path.map(|s| CString::new(s).unwrap()); let device = CString::new(device).unwrap(); let cache_dir = cache_dir.map(|s| CString::new(s).unwrap()); diff --git a/sys/build.rs b/sys/build.rs index 0f9b596..0861f15 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -26,7 +26,6 @@ fn main() { ); } - let target = env::var("TARGET").unwrap(); // Link C++ standard library if let Some(cpp_stdlib) = get_cpp_link_stdlib(&target) {