From a95018cc9039851e707973bc19faf907132ae4f3 Mon Sep 17 00:00:00 2001 From: Conrad Ludgate Date: Tue, 12 Apr 2022 23:06:19 +0100 Subject: goodbye warp, hello axum (#296) --- atuin-client/src/api_client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 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 3a4c859b..87c4b6a4 100644 --- a/atuin-client/src/api_client.rs +++ b/atuin-client/src/api_client.rs @@ -31,7 +31,7 @@ pub async fn register( username: &str, email: &str, password: &str, -) -> Result> { +) -> Result { let mut map = HashMap::new(); map.insert("username", username); map.insert("email", email); @@ -61,7 +61,7 @@ pub async fn register( Ok(session) } -pub async fn login(address: &str, req: LoginRequest<'_>) -> Result> { +pub async fn login(address: &str, req: LoginRequest) -> Result { let url = format!("{}/login", address); let client = reqwest::Client::new(); @@ -142,7 +142,7 @@ impl<'a> Client<'a> { Ok(history) } - pub async fn post_history(&self, history: &[AddHistoryRequest<'_, String>]) -> Result<()> { + pub async fn post_history(&self, history: &[AddHistoryRequest]) -> Result<()> { let url = format!("{}/history", self.sync_addr); let url = Url::parse(url.as_str())?; -- cgit v1.3.1