Skip to content

Commit

Permalink
chore: Fix new clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Aug 18, 2023
1 parent 38f1baf commit 4cb610d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pueue/src/daemon/task_handler/finish_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl TaskHandler {
.expect("Errored child went missing while handling finished task.");

let group = {
let mut task = state.tasks.get_mut(task_id).unwrap();
let task = state.tasks.get_mut(task_id).unwrap();
task.status = TaskStatus::Done(TaskResult::Errored);
task.end = Some(Local::now());
self.spawn_callback(task);
Expand Down Expand Up @@ -76,7 +76,7 @@ impl TaskHandler {

// Update all properties on the task and get the group for later
let group = {
let mut task = state
let task = state
.tasks
.get_mut(task_id)
.expect("Task was removed before child process has finished!");
Expand Down
2 changes: 1 addition & 1 deletion pueue/src/daemon/task_handler/messages/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl TaskHandler {
error!("Group \"{name}\" already exists");
return;
}
let mut group = state.create_group(&name);
let group = state.create_group(&name);
if let Some(parallel_tasks) = parallel_tasks {
group.parallel_tasks = parallel_tasks;
}
Expand Down
2 changes: 1 addition & 1 deletion pueue_lib/src/process_helper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mod apple;
pub use self::apple::process_exists;

// Windows specific process handling
#[cfg(any(target_os = "windows"))]
#[cfg(target_os = "windows")]
mod windows;
#[cfg(target_os = "windows")]
pub use self::windows::*;
Expand Down

0 comments on commit 4cb610d

Please sign in to comment.