Update to edition 2024

This commit is contained in:
Lambda 2025-02-21 20:44:45 +00:00
parent a871c83df4
commit 6e0152d4e5
2 changed files with 2 additions and 3 deletions

View file

@ -13,7 +13,6 @@ unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
rust-2024-compatibility = "warn"
[workspace.lints.clippy]
# Groups. Keep alphabetically sorted
@ -79,7 +78,7 @@ name = "grapevine"
description = "A Matrix homeserver written in Rust"
license = "Apache-2.0"
version = "0.1.0"
edition = "2021"
edition = "2024"
# See also `rust-toolchain.toml`
rust-version = "1.85.0"

View file

@ -156,7 +156,7 @@ impl service::rooms::user::Data for KeyValueDatabase {
let roomid_index = key
.iter()
.enumerate()
.find(|(_, &b)| b == 0xFF)
.find(|&(_, &b)| b == 0xFF)
.ok_or_else(|| {
Error::bad_database(
"Invalid userroomid_joined in db.",