mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-24 00:00:16 +02:00
Require Output = () on WebSocketStream::on_upgrade (#646)
Fixes https://github.com/tokio-rs/axum/issues/636
This commit is contained in:
+3
-1
@@ -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.4 (13. January, 2021)
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user