Skip to content

Commit

Permalink
Remove Send bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
DaughterOfMars committed Aug 15, 2024
1 parent 955d5fe commit d95963e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions msim/src/sim/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ impl NodeHandle {
/// Spawn a future onto the runtime.
pub fn spawn<F>(&self, future: F) -> JoinHandle<F::Output>
where
F: Future + Send + 'static,
F::Output: Send + 'static,
F: Future + 'static,
F::Output: 'static,
{
self.task.spawn(future)
}
Expand Down
4 changes: 2 additions & 2 deletions msim/src/sim/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ impl TaskNodeHandle {

pub fn spawn<F>(&self, future: F) -> JoinHandle<F::Output>
where
F: Future + Send + 'static,
F::Output: Send + 'static,
F: Future + 'static,
F::Output: 'static,
{
self.spawn_local(future)
}
Expand Down

0 comments on commit d95963e

Please sign in to comment.