Commit aa893de9 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Fix (clippy): Sort using sort_unstable() instead of sort()

parent 19a34d53
......@@ -1492,7 +1492,7 @@ impl MedalConnection for Connection {
let mut n_other = 0;
// Get list of groups, where users have been removed from
groups.sort();
groups.sort_unstable();
groups.dedup();
// Delete all groups that became empty by removing students
......@@ -1582,7 +1582,7 @@ impl MedalConnection for Connection {
self.execute(query, &[&maxage]).unwrap();
}
return Ok((n_users, n_groups, n_teachers, n_other));
Ok((n_users, n_groups, n_teachers, n_other))
}
fn get_debug_information(&self) -> String {
......
......@@ -1611,7 +1611,7 @@ impl MedalConnection for Connection {
let mut n_other = 0;
// Get list of groups, where users have been removed from
groups.sort();
groups.sort_unstable();
groups.dedup();
// Delete all groups that became empty by removing students
......@@ -1701,7 +1701,7 @@ impl MedalConnection for Connection {
self.execute(query, &[&maxage]).unwrap();
}
return Ok((n_users, n_groups, n_teachers, n_other));
Ok((n_users, n_groups, n_teachers, n_other))
}
fn get_debug_information(&self) -> String {
......
......@@ -1611,7 +1611,7 @@ impl MedalConnection for Connection {
let mut n_other = 0;
// Get list of groups, where users have been removed from
groups.sort();
groups.sort_unstable();
groups.dedup();
// Delete all groups that became empty by removing students
......@@ -1701,7 +1701,7 @@ impl MedalConnection for Connection {
self.execute(query, &[&maxage]).unwrap();
}
return Ok((n_users, n_groups, n_teachers, n_other));
Ok((n_users, n_groups, n_teachers, n_other))
}
fn get_debug_information(&self) -> String {
......
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