fix clippy

This commit is contained in:
jb-alvarado 2024-07-04 15:12:38 +02:00
parent 200455f14f
commit eb25c1f3fc
2 changed files with 7 additions and 9 deletions

View File

@ -676,15 +676,13 @@ pub fn filter_chains(
|| Path::new(&node.audio).is_file()
{
extend_audio(node, &mut filters, i, config);
} else if node.unit == Decoder {
if !node.source.contains("color=c=") {
warn!(target: Target::file_mail(), channel = config.general.channel_id;
"Missing audio track (id {i}) from <b><magenta>{}</></b>",
node.source
);
} else if node.unit == Decoder && !node.source.contains("color=c=") {
warn!(target: Target::file_mail(), channel = config.general.channel_id;
"Missing audio track (id {i}) from <b><magenta>{}</></b>",
node.source
);
add_audio(node, &mut filters, i, config);
}
add_audio(node, &mut filters, i, config);
}
// add at least anull filter, for correct filter construction,

View File

@ -190,7 +190,7 @@ pub async fn run_args(pool: &Pool<Sqlite>) -> Result<(), i32> {
let mut args = ARGS.clone();
if args.dump_advanced.is_none() && args.dump_config.is_none() {
if let Err(e) = handles::db_migrate(&pool).await {
if let Err(e) = handles::db_migrate(pool).await {
panic!("{e}");
};
}