From: Felix Ableitner Date: Thu, 1 Sep 2022 09:20:33 +0000 (+0200) Subject: fix clippy X-Git-Url: http://these/git/%22%7Burl%7D/%7B%60%24%7BghostArchiveUrl%7D/static/%7B%7D/inbox?a=commitdiff_plain;h=0a14b17747413b5deb19f8b890d3b0ffd956b23b;p=lemmy.git fix clippy --- diff --git a/crates/api_crud/src/user/create.rs b/crates/api_crud/src/user/create.rs index 3f867a9e..7d35f320 100644 --- a/crates/api_crud/src/user/create.rs +++ b/crates/api_crud/src/user/create.rs @@ -15,7 +15,6 @@ use lemmy_db_schema::{ aggregates::structs::PersonAggregates, source::{ local_user::{LocalUser, LocalUserForm}, - local_user_language::LocalUserLanguage, person::{Person, PersonForm}, registration_application::{RegistrationApplication, RegistrationApplicationForm}, site::Site, @@ -171,7 +170,7 @@ impl PerformCrud for Register { if require_application { // Create the registration application let form = RegistrationApplicationForm { - local_user_id: Some(local_user_id), + local_user_id: Some(inserted_local_user.id), // We already made sure answer was not null above answer: data.answer.to_owned(), ..RegistrationApplicationForm::default()