]> Untitled Git - lemmy.git/commitdiff
fix clippy
authorFelix Ableitner <me@nutomic.com>
Thu, 1 Sep 2022 09:20:33 +0000 (11:20 +0200)
committerDessalines <dessalines@users.noreply.github.com>
Fri, 2 Sep 2022 14:49:54 +0000 (10:49 -0400)
crates/api_crud/src/user/create.rs

index 3f867a9e4cac5fdc2309ec839d0302715d6026ea..7d35f3207e0d36d53eed69590807afc911d06611 100644 (file)
@@ -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()