Update to rustc 1.95.0 (#5962)

* Update to rustc 1.95.0

* fmt
This commit is contained in:
aecsocket
2026-05-01 20:39:14 +01:00
committed by GitHub
parent 264aade726
commit 9403462915
15 changed files with 20 additions and 183 deletions

View File

@@ -861,7 +861,7 @@ impl DBProject {
} = loaders_ptypes_games.remove(&project_id).map(|x|x.1).unwrap_or_default();
// Each version is a tuple of (DBVersionId, DateTime<Utc>)
let mut versions = versions.remove(&project_id).map(|x| x.1).unwrap_or_default();
versions.sort_by(|a, b| a.1.cmp(&b.1));
versions.sort_by_key(|a| a.1);
let mut gallery = mods_gallery.remove(&project_id).map(|x| x.1).unwrap_or_default();
let urls = links.remove(&project_id).map(|x| x.1).unwrap_or_default();
let version_fields = version_fields.remove(&project_id).map(|x| x.1).unwrap_or_default();
@@ -925,7 +925,7 @@ impl DBProject {
games,
versions: versions.into_iter().map(|x| x.0).collect(),
gallery_items: {
gallery.sort_by(|a, b| a.ordering.cmp(&b.ordering));
gallery.sort_by_key(|a| a.ordering);
gallery
},
urls,

View File

@@ -161,7 +161,7 @@ impl DBThread {
)
.ok()
.unwrap_or_default();
messages.sort_by(|a, b| a.created.cmp(&b.created));
messages.sort_by_key(|a| a.created);
messages
},
members: x.members.unwrap_or_default().into_iter().map(DBUserId).collect(),