typo 'progess' -> 'progress'
This commit is contained in:
parent
807bc242e9
commit
6df9106aa3
1 changed files with 4 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ pub struct FullParams<'a, 'b> {
|
|||
phantom_lang: PhantomData<&'a str>,
|
||||
phantom_tokens: PhantomData<&'b [c_int]>,
|
||||
grammar: Option<Vec<whisper_rs_sys::whisper_grammar_element>>,
|
||||
progess_callback_safe: Option<Arc<Box<dyn FnMut(i32)>>>,
|
||||
progress_callback_safe: Option<Arc<Box<dyn FnMut(i32)>>>,
|
||||
abort_callback_safe: Option<Arc<Box<dyn FnMut() -> bool>>>,
|
||||
segment_calllback_safe: Option<Arc<SegmentCallbackFn>>,
|
||||
}
|
||||
|
|
@ -75,7 +75,7 @@ impl<'a, 'b> FullParams<'a, 'b> {
|
|||
phantom_lang: PhantomData,
|
||||
phantom_tokens: PhantomData,
|
||||
grammar: None,
|
||||
progess_callback_safe: None,
|
||||
progress_callback_safe: None,
|
||||
abort_callback_safe: None,
|
||||
segment_calllback_safe: None,
|
||||
}
|
||||
|
|
@ -581,12 +581,12 @@ impl<'a, 'b> FullParams<'a, 'b> {
|
|||
let boxed_closure = Box::new(boxed_closure);
|
||||
let raw_ptr = Box::into_raw(boxed_closure);
|
||||
self.fp.progress_callback_user_data = raw_ptr as *mut c_void;
|
||||
self.progess_callback_safe = None;
|
||||
self.progress_callback_safe = None;
|
||||
}
|
||||
None => {
|
||||
self.fp.progress_callback = None;
|
||||
self.fp.progress_callback_user_data = std::ptr::null_mut::<c_void>();
|
||||
self.progess_callback_safe = None;
|
||||
self.progress_callback_safe = None;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue