diff options
Diffstat (limited to 'crates/atuin-daemon/src/client.rs')
| -rw-r--r-- | crates/atuin-daemon/src/client.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/atuin-daemon/src/client.rs b/crates/atuin-daemon/src/client.rs index 72272c01..a4b4690e 100644 --- a/crates/atuin-daemon/src/client.rs +++ b/crates/atuin-daemon/src/client.rs @@ -49,7 +49,7 @@ impl HistoryClient { pub async fn new(port: u64) -> Result<Self> { let channel = Endpoint::try_from("http://atuin_local_daemon:0")? .connect_with_connector(service_fn(move |_: Uri| { - let url = format!("127.0.0.1:{}", port); + let url = format!("127.0.0.1:{port}"); async move { Ok::<_, std::io::Error>(TokioIo::new(TcpStream::connect(url.clone()).await?)) @@ -58,8 +58,7 @@ impl HistoryClient { .await .wrap_err_with(|| { format!( - "failed to connect to local atuin daemon at 127.0.0.1:{}. Is it running?", - port + "failed to connect to local atuin daemon at 127.0.0.1:{port}. Is it running?" ) })?; |
