Commit e13a9c1d authored by Robert Czechowski's avatar Robert Czechowski

Clippy

parent 2b55a0e4
Pipeline #1179 failed with stages
in 3 minutes and 28 seconds
......@@ -1326,7 +1326,7 @@ pub fn admin_show_user<T: MedalConnection>(conn: &T, user_id: i32, session_token
data.insert("logincode".to_string(), to_json(&user.logincode));
data.insert("userid".to_string(), to_json(&user.id));
let grade = if user.grade >= 200 {
format!("Kein Schüler mehr")
"Kein Schüler mehr".to_string()
} else if user.grade >= 11 {
format!("{} ({})", user.grade % 100, if user.grade >= 100 { "G9" } else { "G8" })
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment