refactor: clean up hints

This commit is contained in:
Paul Makles
2023-05-31 13:02:59 +01:00
parent fc47df786b
commit 2ebcfdc770
6 changed files with 10 additions and 11 deletions

View File

@@ -111,6 +111,7 @@ auto_derived!(
impl User {
/// Check whether a username is already in use by another user
#[allow(dead_code)]
async fn is_username_taken(db: &Database, username: &str) -> Result<bool> {
match db.fetch_user_by_username(username).await {
Ok(_) => Ok(true),