From 71bdea40015f934b9414efc634cb1c8a07e9ca19 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 2 Oct 2022 14:16:13 +0200 Subject: [PATCH] fixed stuff --- como_bin/src/graphql.rs | 2 +- como_bin/src/services/users_service.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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};