Fix doc indents

This commit is contained in:
Niko 2025-02-24 11:49:55 -07:00
parent d3fe24a512
commit f75aff9659
No known key found for this signature in database

View file

@ -537,7 +537,7 @@ impl<'a, 'b> FullParams<'a, 'b> {
/// # Safety /// # Safety
/// Do not use this function unless you know what you are doing. /// Do not use this function unless you know what you are doing.
/// * Be careful not to mutate the state of the whisper_context pointer returned in the callback. /// * Be careful not to mutate the state of the whisper_context pointer returned in the callback.
/// This could cause undefined behavior, as this violates the thread-safety guarantees of the underlying C library. /// This could cause undefined behavior, as this violates the thread-safety guarantees of the underlying C library.
/// ///
/// Defaults to None. /// Defaults to None.
pub unsafe fn set_progress_callback( pub unsafe fn set_progress_callback(
@ -652,7 +652,7 @@ impl<'a, 'b> FullParams<'a, 'b> {
/// # Safety /// # Safety
/// Do not use this function unless you know what you are doing. /// Do not use this function unless you know what you are doing.
/// * Be careful not to mutate the state of the whisper_context pointer returned in the callback. /// * Be careful not to mutate the state of the whisper_context pointer returned in the callback.
/// This could cause undefined behavior, as this violates the thread-safety guarantees of the underlying C library. /// This could cause undefined behavior, as this violates the thread-safety guarantees of the underlying C library.
/// ///
/// Defaults to None. /// Defaults to None.
pub unsafe fn set_start_encoder_callback( pub unsafe fn set_start_encoder_callback(
@ -799,8 +799,8 @@ impl<'a, 'b> FullParams<'a, 'b> {
// following implementations are safe // following implementations are safe
// see https://github.com/ggerganov/whisper.cpp/issues/32#issuecomment-1272790388 // see https://github.com/ggerganov/whisper.cpp/issues/32#issuecomment-1272790388
// concurrent usage is prevented by &mut self on methods that modify the struct // concurrent usage is prevented by &mut self on methods that modify the struct
unsafe impl<'a, 'b> Send for FullParams<'a, 'b> {} unsafe impl Send for FullParams<'_, '_> {}
unsafe impl<'a, 'b> Sync for FullParams<'a, 'b> {} unsafe impl Sync for FullParams<'_, '_> {}
#[cfg(test)] #[cfg(test)]
mod test_whisper_params_initial_prompt { mod test_whisper_params_initial_prompt {