chore: clippy

This commit is contained in:
Vukašin Vojinović 2026-04-28 14:45:01 +02:00 committed by Michael Murphy
parent 93e31d433a
commit e91a984da9
6 changed files with 45 additions and 52 deletions

View file

@ -1401,7 +1401,7 @@ impl App {
// Manually rescan any trash tabs after any operation is completed
commands.push(self.rescan_trash());
return Task::batch(commands);
Task::batch(commands)
}
fn handle_operation_errors(&mut self, errors: Vec<(u64, OperationError)>) -> Task<Message> {
@ -1446,7 +1446,7 @@ impl App {
}
// Manually rescan any trash tabs after any operation is completed
tasks.push(self.rescan_trash());
return Task::batch(tasks);
Task::batch(tasks)
}
fn remove_window(&mut self, id: &window::Id) {
@ -5661,7 +5661,7 @@ impl Application for App {
}
DialogPage::FailedOperations(ids) => {
let errors: Vec<String> = ids
.into_iter()
.iter()
.filter_map(|id| match self.failed_operations.get(id) {
Some((operation, _, err)) => Some(format!("{operation:#?}\n{err}")),
_ => None,