fix borrow checker error

This commit is contained in:
Chris Cochrun 2024-06-21 12:29:10 -05:00
parent 412a9711d7
commit 400ad2ad5b

View file

@ -165,7 +165,7 @@ pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResp
}) })
.0 .0
.clone(); .clone();
let reg = registration.clone().as_str(); let reg = registration.clone();
log::info!("{first} {last} signed up for camp!"); log::info!("{first} {last} signed up for camp!");
let email = markup::new! { let email = markup::new! {
@markup::doctype() @markup::doctype()
@ -282,7 +282,7 @@ pub async fn camp_form(MultipartForm(form): MultipartForm<CampForm>) -> HttpResp
log::info!("Email incorrect"); log::info!("Email incorrect");
} }
match reg { match reg.as_str() {
"now" => { "now" => {
log::info!("Sending them to pay for registration now"); log::info!("Sending them to pay for registration now");
} }