linting issues
This commit is contained in:
parent
9b70af3dba
commit
0330876377
7 changed files with 128 additions and 368 deletions
|
@ -42,49 +42,37 @@ pub async fn teacher_form(MultipartForm(form): MultipartForm<TeacherForm>) -> Ht
|
|||
let relationship = form
|
||||
.relationship
|
||||
.as_ref()
|
||||
.unwrap_or(&Text {
|
||||
0: String::from(""),
|
||||
})
|
||||
.unwrap_or(&Text(String::from("")))
|
||||
.0
|
||||
.clone();
|
||||
let attitudes = form
|
||||
.attitudes
|
||||
.as_ref()
|
||||
.unwrap_or(&Text {
|
||||
0: String::from(""),
|
||||
})
|
||||
.unwrap_or(&Text(String::from("")))
|
||||
.0
|
||||
.clone();
|
||||
let positive = form
|
||||
.positive
|
||||
.as_ref()
|
||||
.unwrap_or(&Text {
|
||||
0: String::from(""),
|
||||
})
|
||||
.unwrap_or(&Text(String::from("")))
|
||||
.0
|
||||
.clone();
|
||||
let negative = form
|
||||
.negative
|
||||
.as_ref()
|
||||
.unwrap_or(&Text {
|
||||
0: String::from(""),
|
||||
})
|
||||
.unwrap_or(&Text(String::from("")))
|
||||
.0
|
||||
.clone();
|
||||
let team = form
|
||||
.team
|
||||
.as_ref()
|
||||
.unwrap_or(&Text {
|
||||
0: String::from(""),
|
||||
})
|
||||
.unwrap_or(&Text(String::from("")))
|
||||
.0
|
||||
.clone();
|
||||
let notes = form
|
||||
.notes
|
||||
.as_ref()
|
||||
.unwrap_or(&Text {
|
||||
0: String::from(""),
|
||||
})
|
||||
.unwrap_or(&Text(String::from("")))
|
||||
.0
|
||||
.clone();
|
||||
log::info!("{first} {last} filled out a teacher form!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue