From db2d6c3d83e927185068aab457396ee1a21994ff Mon Sep 17 00:00:00 2001 From: YummyOreo Date: Mon, 29 Jul 2024 09:10:49 -0500 Subject: [PATCH] fix: windows build error (#2321) * fix: windows build * refactor: cargo fmt refactor: cargo fmt --- crates/atuin-daemon/src/client.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/atuin-daemon/src/client.rs b/crates/atuin-daemon/src/client.rs index 3de872d2..815a71dc 100644 --- a/crates/atuin-daemon/src/client.rs +++ b/crates/atuin-daemon/src/client.rs @@ -45,7 +45,9 @@ impl HistoryClient { .connect_with_connector(service_fn(move |_: Uri| { let url = format!("127.0.0.1:{}", port); - TcpStream::connect(url) + async move { + Ok::<_, std::io::Error>(TokioIo::new(TcpStream::connect(url.clone()).await?)) + } })) .await .map_err(|_| eyre!("failed to connect to local atuin daemon. Is it running?"))?;