fix borrow checker error
This commit is contained in:
parent
412a9711d7
commit
400ad2ad5b
|
@ -165,7 +165,7 @@ pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResp
|
|||
})
|
||||
.0
|
||||
.clone();
|
||||
let reg = registration.clone().as_str();
|
||||
let reg = registration.clone();
|
||||
log::info!("{first} {last} signed up for camp!");
|
||||
let email = markup::new! {
|
||||
@markup::doctype()
|
||||
|
@ -282,7 +282,7 @@ pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResp
|
|||
log::info!("Email incorrect");
|
||||
}
|
||||
|
||||
match reg {
|
||||
match reg.as_str() {
|
||||
"now" => {
|
||||
log::info!("Sending them to pay for registration now");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue