mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-22 00:03:49 +01:00
fix: windows build error (#2321)
* fix: windows build * refactor: cargo fmt refactor: cargo fmt
This commit is contained in:
parent
8cb5983a53
commit
db2d6c3d83
@ -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?"))?;
|
||||
|
Loading…
Reference in New Issue
Block a user