Skip to content

Commit 2265428

Browse files
bryantbiggsjsturtevant
authored andcommitted
Update lib.rs
Co-authored-by: James Sturtevant <[email protected]> Signed-off-by: Bryant Biggs <[email protected]>
1 parent 81f5138 commit 2265428

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/client/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,11 @@ pub async fn connect(
103103

104104
#[cfg(windows)]
105105
{
106-
let client = tokio::net::windows::named_pipe::ClientOptions::new()
107-
.open(path.clone())
108-
.map_err(|e| std::io::Error::from(e));
109-
async move { client }
106+
let client = tokio::net::windows::named_pipe::ClientOptions::new()
107+
.open(&path)
108+
.map_err(|e| std::io::Error::from(e))?;
109+
110+
Ok::<_, std::io::Error>(hyper_util::rt::TokioIo::new(client))
110111
}
111112
}
112113
}))

0 commit comments

Comments
 (0)