Skip to content
Snippets Groups Projects
Verified Commit f235b47c authored by Volkor Barbarian Warrior's avatar Volkor Barbarian Warrior
Browse files

fix: replace unwrap with something more verbose

parent ab3dbb6a
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ pub async fn serve_static(req: &mut Request, res: &mut Response) {
message1: rand::thread_rng().gen_range(0..1).to_string(),
..Default::default()
};
let rendered = tpls.get("qr.html").unwrap().render(&template);
let rendered = tpls.get("qr.html").expect("Failed to read qr.html").render(&template);
res.status_code(StatusCode::OK);
res.render(Text::Html(rendered));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment