Skip to content

Commit

Permalink
try to fix erased ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
DaughterOfMars committed Nov 18, 2024
1 parent 2532741 commit a354091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msim/src/sim/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ impl<T> JoinHandle<T> {

/// Return an AbortHandle corresponding for the task.
pub fn abort_handle(&self) -> AbortHandle {
let inner = ErasablePtr::erase(Box::new(self.inner.clone()));
let inner = ErasablePtr::erase(self.inner.clone());
let id = self.id;
AbortHandle { id, inner }
}
Expand Down

0 comments on commit a354091

Please sign in to comment.