Remove unused error handling
This commit is contained in:
parent
623e5a40cb
commit
67c343082b
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue