Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
CryZe committed Oct 2, 2019
1 parent 5a85a99 commit d4e5872
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ stream = ["bytes"]

[dependencies]
log = "0.4"
futures-preview = { version = "0.3.0-alpha.18", features = ["async-await", "nightly"] }
pin-project = "0.4.0-alpha.9"
tokio-io = "0.2.0-alpha.5"
futures-preview = { version = "0.3.0-alpha.19", features = ["async-await"] }
pin-project = "0.4.0"
tokio-io = "0.2.0-alpha.6"

[dependencies.tungstenite]
#version = "0.9.1"
Expand All @@ -44,13 +44,13 @@ git = "https://github.com/sbstp/tokio-dns.git"

[dependencies.tokio-net]
optional = true
version = "0.2.0-alpha.5"
version = "0.2.0-alpha.6"

[dependencies.tokio-tls]
optional = true
version = "0.3.0-alpha.5"
version = "0.3.0-alpha.6"

[dev-dependencies]
tokio = "0.2.0-alpha.5"
tokio = "0.2.0-alpha.6"
url = "2.0.0"
env_logger = "0.6.1"
env_logger = "0.7.0"
2 changes: 1 addition & 1 deletion src/handshake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ where
{
type Output = Result<Role::FinalResult, Error<Role>>;

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.project();
let mut s = this.0.take().expect("future polled after completion");

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ where
{
type Output = Result<(), WsError>;

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.project();
let message = this.message.take().expect("Cannot poll twice");
Poll::Ready(this.stream.with_context(cx, |s| s.write_message(message)))
Expand All @@ -324,7 +324,7 @@ where
{
type Output = Result<(), WsError>;

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let this = self.project();
let message = this.message.take().expect("Cannot poll twice");
Poll::Ready(this.stream.with_context(cx, |s| s.close(message)))
Expand Down

0 comments on commit d4e5872

Please sign in to comment.