mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
Update to edition 2024
This commit is contained in:
parent
a871c83df4
commit
6e0152d4e5
2 changed files with 2 additions and 3 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue