Clippy fix

This commit is contained in:
2024-08-29 11:47:19 +01:00
parent a64b54ba12
commit 76c2a1a6a6
11 changed files with 31 additions and 88 deletions

View File

@ -1,5 +1,4 @@
use std::collections::HashSet;
use std::fmt::Display;
use std::{fs, ptr};
use anyhow::Error;
@ -52,7 +51,7 @@ impl RecorderEgress {
}
unsafe fn setup_muxer(&mut self) -> Result<(), Error> {
let mut ctx = avformat_alloc_context();
let ctx = avformat_alloc_context();
if ctx.is_null() {
return Err(Error::msg("Failed to create muxer context"));
}