mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-25 14:00:19 +00:00
fix clippy
This commit is contained in:
parent
3295784ebb
commit
0a14b17747
1 changed files with 1 additions and 2 deletions
|
@ -15,7 +15,6 @@ use lemmy_db_schema::{
|
||||||
aggregates::structs::PersonAggregates,
|
aggregates::structs::PersonAggregates,
|
||||||
source::{
|
source::{
|
||||||
local_user::{LocalUser, LocalUserForm},
|
local_user::{LocalUser, LocalUserForm},
|
||||||
local_user_language::LocalUserLanguage,
|
|
||||||
person::{Person, PersonForm},
|
person::{Person, PersonForm},
|
||||||
registration_application::{RegistrationApplication, RegistrationApplicationForm},
|
registration_application::{RegistrationApplication, RegistrationApplicationForm},
|
||||||
site::Site,
|
site::Site,
|
||||||
|
@ -171,7 +170,7 @@ impl PerformCrud for Register {
|
||||||
if require_application {
|
if require_application {
|
||||||
// Create the registration application
|
// Create the registration application
|
||||||
let form = RegistrationApplicationForm {
|
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
|
// We already made sure answer was not null above
|
||||||
answer: data.answer.to_owned(),
|
answer: data.answer.to_owned(),
|
||||||
..RegistrationApplicationForm::default()
|
..RegistrationApplicationForm::default()
|
||||||
|
|
Loading…
Reference in a new issue