Skip to content

Commit

Permalink
Loosen trait bounds for mutate router
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoulHC committed Apr 8, 2024
1 parent 8139769 commit b26824f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion matchbox_signaling/src/signaling_server/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ where

/// Modify the router with a mutable closure. This is where one may apply middleware or other
/// layers to the Router.
pub fn mutate_router(mut self, mut alter: impl FnMut(Router) -> Router) -> Self {
pub fn mutate_router(mut self, alter: impl FnOnce(Router) -> Router) -> Self {
self.router = alter(self.router);
self
}
Expand Down

0 comments on commit b26824f

Please sign in to comment.