Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
aa893de9
Commit
aa893de9
authored
Jan 05, 2021
by
Robert Czechowski
Browse files
Fix (clippy): Sort using sort_unstable() instead of sort()
parent
19a34d53
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/db_conn.base.rs
View file @
aa893de9
...
...
@@ -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
{
...
...
src/db_conn_postgres.rs
View file @
aa893de9
...
...
@@ -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
{
...
...
src/db_conn_sqlite_new.rs
View file @
aa893de9
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment