From 3abc96fafe052f3c68ac7d1ae18e4fafee8e1f34 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 6 Feb 2023 12:59:01 +0100 Subject: Try to make clippy happy 🥺 (#686) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Try to make clippy happy 🥺 * Fmt * I missed one (can't run clippy locally on airport wifi...) --- atuin-client/src/api_client.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'atuin-client/src/api_client.rs') diff --git a/atuin-client/src/api_client.rs b/atuin-client/src/api_client.rs index b20d9378..44375c06 100644 --- a/atuin-client/src/api_client.rs +++ b/atuin-client/src/api_client.rs @@ -42,14 +42,14 @@ pub async fn register( map.insert("email", email); map.insert("password", password); - let url = format!("{}/user/{}", address, username); + let url = format!("{address}/user/{username}"); let resp = reqwest::get(url).await?; if resp.status().is_success() { bail!("username already in use"); } - let url = format!("{}/register", address); + let url = format!("{address}/register"); let client = reqwest::Client::new(); let resp = client .post(url) @@ -68,7 +68,7 @@ pub async fn register( } pub async fn login(address: &str, req: LoginRequest) -> Result { - let url = format!("{}/login", address); + let url = format!("{address}/login"); let client = reqwest::Client::new(); let resp = client @@ -111,7 +111,7 @@ pub async fn latest_version() -> Result { impl<'a> Client<'a> { pub fn new(sync_addr: &'a str, session_token: &'a str, key: String) -> Result { let mut headers = HeaderMap::new(); - headers.insert(AUTHORIZATION, format!("Token {}", session_token).parse()?); + headers.insert(AUTHORIZATION, format!("Token {session_token}").parse()?); Ok(Client { sync_addr, -- cgit v1.3.1