linting issues

This commit is contained in:
Chris Cochrun 2024-06-25 06:30:09 -05:00
parent 9b70af3dba
commit 0330876377
7 changed files with 128 additions and 368 deletions

View file

@ -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!");