From 67c343082b9b32620ec5174f108f606e682a4821 Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 13 Aug 2025 13:19:04 -0700 Subject: [PATCH] Remove unused error handling --- src/whisper_state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/whisper_state.rs b/src/whisper_state.rs index 5692675..e79d6cd 100644 --- a/src/whisper_state.rs +++ b/src/whisper_state.rs @@ -252,8 +252,8 @@ impl WhisperState { /// /// # C++ equivalent /// `int whisper_n_len_from_state(struct whisper_context * ctx)` - pub fn n_len(&self) -> Result { - Ok(unsafe { whisper_rs_sys::whisper_n_len_from_state(self.ptr) }) + pub fn n_len(&self) -> c_int { + unsafe { whisper_rs_sys::whisper_n_len_from_state(self.ptr) } } /// Get n_vocab.