From 3e6d3da162146e8697fc39c4a81e66a339f14bc6 Mon Sep 17 00:00:00 2001 From: Niko Date: Tue, 19 Aug 2025 21:48:24 -0700 Subject: [PATCH] Change return type of `get_whisper_version` (closes #241) --- src/standalone.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/standalone.rs b/src/standalone.rs index be123c1..c090e3c 100644 --- a/src/standalone.rs +++ b/src/standalone.rs @@ -87,7 +87,7 @@ pub unsafe fn set_log_callback( } /// Get the current `whisper.cpp` version. -pub fn get_whisper_version() -> &str { +pub fn get_whisper_version() -> &'static str { let ptr = unsafe { whisper_rs_sys::whisper_version() }; assert!(!ptr.is_null()); unsafe { CStr::from_ptr(ptr) }