diff --git a/como_bin/src/graphql.rs b/como_bin/src/graphql.rs index 3eab7c4..1198d25 100644 --- a/como_bin/src/graphql.rs +++ b/como_bin/src/graphql.rs @@ -35,7 +35,7 @@ impl MutationRoot { let user_id = user_service.add_user(username, password).await?; - Ok(user_id.into()) + Ok(user_id) } } diff --git a/como_bin/src/services/users_service.rs b/como_bin/src/services/users_service.rs index 059d8e3..ab01764 100644 --- a/como_bin/src/services/users_service.rs +++ b/como_bin/src/services/users_service.rs @@ -1,4 +1,4 @@ -use std::sync::Arc; + use anyhow::anyhow; use argon2::{password_hash::SaltString, Argon2, PasswordHash, PasswordHasher, PasswordVerifier};