Skip to content

Commit

Permalink
Add a missing Sync bound
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored and dconnolly committed Feb 17, 2021
1 parent 090afb9 commit 1ef836a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tower-batch/src/semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub(crate) struct Close {
}

enum State {
Waiting(Pin<Box<dyn Future<Output = Permit> + Send + 'static>>),
Waiting(Pin<Box<dyn Future<Output = Permit> + Send + Sync + 'static>>),
Ready(Permit),
Empty,
}
Expand Down

0 comments on commit 1ef836a

Please sign in to comment.