Skip to content

Commit

Permalink
No more workaround for taiki-e/pin-project#68
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Sep 8, 2019
1 parent b96651c commit 97d5e4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ futures-sink-preview = "0.3.0-alpha.18"
mysql_common = "0.18"
native-tls = "0.2"
percent-encoding = "2.1.0"
pin-project = { version = "0.4.0-alpha.8", features = ["project_attr"] }
pin-project = { version = "0.4.0-alpha.10", features = ["project_attr"] }
regex = "1"
serde = "1"
serde_json = "1"
Expand Down
9 changes: 2 additions & 7 deletions src/io/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,14 @@ use tokio::prelude::*;
use std::{io, path::Path};

/// Unix domain socket connection on unix, or named pipe connection on windows.
#[cfg(unix)]
#[pin_project]
#[derive(Debug)]
pub struct Socket {
#[pin]
#[cfg(unix)]
inner: tokio::net::unix::UnixStream,
}

#[cfg(windows)]
#[pin_project]
#[derive(Debug)]
pub struct Socket {
#[pin]
#[cfg(windows)]
inner: tokio_named_pipes::NamedPipe,
}

Expand Down

0 comments on commit 97d5e4d

Please sign in to comment.