Skip to content

Commit 161d76b

Browse files
committed
chore: lint
1 parent bea02d1 commit 161d76b

File tree

1 file changed

+3
-0
lines changed
  • apps/silero-vad-whisper-realtime-api/src

1 file changed

+3
-0
lines changed

apps/silero-vad-whisper-realtime-api/src/router.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ impl ProcessingStats {
7272
}
7373
}
7474

75+
#[allow(clippy::cast_precision_loss)]
7576
pub async fn transcribe_audio(
7677
State(state): State<Arc<AppState>>,
7778
mut multipart: Multipart,
@@ -251,6 +252,7 @@ async fn convert_audio_to_pcm(audio_data: &[u8]) -> Result<Vec<f32>> {
251252
}
252253

253254
// Process complete audio file and return full transcript
255+
#[allow(clippy::significant_drop_tightening)]
254256
async fn transcribe_audio_complete(
255257
state: Arc<AppState>,
256258
model_name: String, // Change to owned String
@@ -382,6 +384,7 @@ async fn create_transcription_stream(
382384
}
383385

384386
// Create event with actual transcription or progress update
387+
#[allow(clippy::option_if_let_else)]
385388
let event_data = if let Some(transcript) = whisper_result {
386389
#[allow(clippy::cast_precision_loss)]
387390
StreamChunk { text: transcript, timestamp: Some(processed as f64 / f64::from(sample_rate)) }

0 commit comments

Comments
 (0)