Skip to content

Commit 668a2ff

Browse files
committed
clippy
1 parent ddabdc0 commit 668a2ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/api/api_crud/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async fn community_use_pending(community: &Community, context: &LemmyContext) ->
2929

3030
async fn check_user_or_community_name_taken(name: &str, context: &LemmyContext) -> LemmyResult<()> {
3131
// TODO: better to make only a single sql query
32-
Person::check_name_taken(&mut context.pool(), &name).await?;
33-
Community::check_name_taken(&mut context.pool(), &name).await?;
32+
Person::check_name_taken(&mut context.pool(), name).await?;
33+
Community::check_name_taken(&mut context.pool(), name).await?;
3434
Ok(())
3535
}

crates/api/api_crud/src/user/create.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ pub async fn authenticate_with_oauth(
392392
check_slurs(username, &slur_regex)?;
393393
check_slurs_opt(&tx_data.answer, &slur_regex)?;
394394

395-
check_user_or_community_name_taken(&username, &tx_context).await?;
395+
check_user_or_community_name_taken(username, &tx_context).await?;
396396

397397
// We have to create a person, a local_user, and an oauth_account
398398
let person = create_person(username.clone(), &site_view, &tx_context, conn).await?;

0 commit comments

Comments
 (0)