Commit 86698d23 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Fix clippy complaint 'use of followed by a function call'

parent 7f4d43fb
Pipeline #250 passed with stages
in 14 minutes and 27 seconds
......@@ -309,7 +309,7 @@ pub fn show_contest_results<T: MedalConnection>(conn: &T, contest_id: i32, sessi
userresults[0] = format!("{}", summe);
groupresults.push((format!("{} {}", user.firstname.unwrap_or_default(), user.lastname.unwrap_or("–".to_string())), user.id, userresults))
groupresults.push((format!("{} {}", user.firstname.unwrap_or_default(), user.lastname.unwrap_or_else(|| "–".to_string())), user.id, userresults))
}
results.push((format!("{}", group.name), group.id.unwrap_or(0), groupresults));
......
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