Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Nov 15, 2024
1 parent 1aefc66 commit aa90c57
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions turbopack/crates/turbo-tasks/src/effect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ impl EffectInstance {

pub fn apply(&self) -> Option<JoinHandle<Result<()>>> {
let future = self.future.lock().take();
if let Some(future) = future {
Some(tokio::spawn(future))
} else {
None
}
future.map(tokio::spawn)
}
}

Expand Down

0 comments on commit aa90c57

Please sign in to comment.