Skip to content

Commit

Permalink
Merge pull request #319 from evyatark2/remove-sync
Browse files Browse the repository at this point in the history
Remove redundant `Sync` bound
  • Loading branch information
GlenDC authored Sep 16, 2024
2 parents 1230ef9 + 39823d9 commit 51ad98b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rama-tcp/src/server/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ where
pub async fn serve_fn<F, T, R, O, E>(self, f: F)
where
F: Factory<T, R, O, E>,
R: Future<Output = Result<O, E>> + Send + Sync + 'static,
R: Future<Output = Result<O, E>> + Send + 'static,
O: Send + Sync + 'static,
E: Send + Sync + 'static,
T: FromContextRequest<State, TcpStream>,
Expand Down Expand Up @@ -267,7 +267,7 @@ where
pub async fn serve_fn_graceful<F, T, R, O, E>(self, guard: ShutdownGuard, service: F)
where
F: Factory<T, R, O, E>,
R: Future<Output = Result<O, E>> + Send + Sync + 'static,
R: Future<Output = Result<O, E>> + Send + 'static,
O: Send + Sync + 'static,
E: Send + Sync + 'static,
T: FromContextRequest<State, TcpStream>,
Expand Down

0 comments on commit 51ad98b

Please sign in to comment.