Remove unused error handling

This commit is contained in:
Niko 2025-08-13 13:19:04 -07:00
parent 623e5a40cb
commit 67c343082b
No known key found for this signature in database

View file

@ -252,8 +252,8 @@ impl WhisperState {
/// ///
/// # C++ equivalent /// # C++ equivalent
/// `int whisper_n_len_from_state(struct whisper_context * ctx)` /// `int whisper_n_len_from_state(struct whisper_context * ctx)`
pub fn n_len(&self) -> Result<c_int, WhisperError> { pub fn n_len(&self) -> c_int {
Ok(unsafe { whisper_rs_sys::whisper_n_len_from_state(self.ptr) }) unsafe { whisper_rs_sys::whisper_n_len_from_state(self.ptr) }
} }
/// Get n_vocab. /// Get n_vocab.