mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-02 23:34:47 +00:00
Require Output = ()
on WebSocketStream::on_upgrade
(#646)
Fixes https://github.com/tokio-rs/axum/issues/636
This commit is contained in:
parent
455fc46bf3
commit
5d79c638f4
@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
# Unreleased
|
# 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)
|
# 0.4.4 (13. January, 2021)
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ impl WebSocketUpgrade {
|
|||||||
pub fn on_upgrade<F, Fut>(self, callback: F) -> Response
|
pub fn on_upgrade<F, Fut>(self, callback: F) -> Response
|
||||||
where
|
where
|
||||||
F: FnOnce(WebSocket) -> Fut + Send + 'static,
|
F: FnOnce(WebSocket) -> Fut + Send + 'static,
|
||||||
Fut: Future + Send + 'static,
|
Fut: Future<Output = ()> + Send + 'static,
|
||||||
{
|
{
|
||||||
let on_upgrade = self.on_upgrade;
|
let on_upgrade = self.on_upgrade;
|
||||||
let config = self.config;
|
let config = self.config;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user