Skip to content

Commit

Permalink
Require Output = () on WebSocketStream::on_upgrade (#646)
Browse files Browse the repository at this point in the history
Fixes #636
  • Loading branch information
davidpdrsn committed Dec 27, 2021
1 parent b482d35 commit b9e4c5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion axum/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

# Unreleased

- None.
- **breaking:** Require `Output = ()` on `WebSocketStream::on_upgrade` ([#644])

[#644]: https://github.com/tokio-rs/axum/pull/644

# 0.4.3 (21. December, 2021)

Expand Down
2 changes: 1 addition & 1 deletion axum/src/extract/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl WebSocketUpgrade {
pub fn on_upgrade<F, Fut>(self, callback: F) -> Response
where
F: FnOnce(WebSocket) -> Fut + Send + 'static,
Fut: Future + Send + 'static,
Fut: Future<Output = ()> + Send + 'static,
{
let on_upgrade = self.on_upgrade;
let config = self.config;
Expand Down

0 comments on commit b9e4c5e

Please sign in to comment.