fix clippy
This commit is contained in:
parent
200455f14f
commit
eb25c1f3fc
@ -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,
|
||||
|
@ -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}");
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user