Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Jan 22, 2024
1 parent 4f84d9e commit e3d4591
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ic-task-scheduler/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ where
/// then keep in the hashset only the first half of the tasks.
async fn split_processing_tasks(&mut self) -> Result<()> {
// move tasks_being_processed to tasks_to_be_processed
let tasks_to_be_processed = TASKS_RUNNING.with_borrow_mut(|tasks| std::mem::take(tasks));
let tasks_to_be_processed = TASKS_RUNNING.with_borrow_mut(std::mem::take);
let tasks_len = TASKS_TO_BE_PROCESSED.with_borrow_mut(|tasks| {
*tasks = tasks_to_be_processed;
tasks.len()
Expand Down Expand Up @@ -300,7 +300,7 @@ where

/// Save the current state of the scheduler.
async fn report_state(&self, state: TaskExecutionState) -> Result<()> {
(&*self.on_execution_state_changed_callback)(state).await?;
(*self.on_execution_state_changed_callback)(state).await?;

Ok(())
}
Expand Down

0 comments on commit e3d4591

Please sign in to comment.