Skip to content

Commit

Permalink
bump async-tungstenite from 0.25 to 0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
diablur committed Sep 5, 2024
1 parent 7592659 commit 11602d4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
10 changes: 7 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rustc_version = "^0.4"
[dependencies]
[dependencies.async-tungstenite]
default-features = false
version = "^0.25"
version = "^0.28"

[dependencies.async_io_stream]
default-features = false
Expand Down Expand Up @@ -53,7 +53,7 @@ version = "^0.1"

[dependencies.tungstenite]
default-features = false
version = "^0.21"
version = "^0.24"

[dev-dependencies]
assert_matches = "^1"
Expand All @@ -73,7 +73,7 @@ version = "^1"

[dev-dependencies.async-tungstenite]
features = ["tokio-runtime", "async-std-runtime"]
version = "^0.25"
version = "^0.28"

[dev-dependencies.tokio]
default-features = false
Expand All @@ -90,6 +90,10 @@ default-features = false
features = ["ansi", "env-filter", "fmt", "json", "tracing-log"]
version = "^0.3"

[dev-dependencies.tungstenite]
features = ["url"]
version = "^0.24"

[[example]]
name = "tokio_codec"
path = "examples/tokio_codec.rs"
Expand Down
6 changes: 3 additions & 3 deletions Cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ dependencies:
futures-sink : { version: ^0.3 , default-features: false }
futures-io : { version: ^0.3 , default-features: false }
futures-util : { version: ^0.3 , default-features: false }
tungstenite : { version: ^0.21, default-features: false }
tungstenite : { version: ^0.24, default-features: false }
pharos : { version: ^0.5 , default-features: false }
async-tungstenite : { version: ^0.25, default-features: false }
async-tungstenite : { version: ^0.28, default-features: false }
tokio : { version: ^1 , default-features: false, optional: true }
tracing : { version: ^0.1 }

Expand All @@ -84,7 +84,7 @@ dependencies:
dev-dependencies:

async-std : { version: ^1, features: [ attributes ] }
async-tungstenite : { version: ^0.25, features: [ tokio-runtime, async-std-runtime ] }
async-tungstenite : { version: ^0.28, features: [ tokio-runtime, async-std-runtime ] }
assert_matches : ^1
async_progress : ^0.2
futures : ^0.3
Expand Down
2 changes: 1 addition & 1 deletion src/tung_websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl<S: Unpin> Stream for TungWebSocket<S> where S: AsyncRead + AsyncWrite + Sen
{
self.state.insert( State::STREAM_CLOSED );

self.queue_event( WsEvent::Error(Arc::new( WsErr::from( std::io::Error::from(e.kind()) ) )) );
self.queue_event( WsEvent::Error(Arc::new( WsErr::from( io::Error::from(e.kind()) ) )) );

Some(Err(e)).into()
}
Expand Down

0 comments on commit 11602d4

Please sign in to comment.