mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01: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_lifetimes = "warn"
|
||||||
unused_macro_rules = "warn"
|
unused_macro_rules = "warn"
|
||||||
unused_qualifications = "warn"
|
unused_qualifications = "warn"
|
||||||
rust-2024-compatibility = "warn"
|
|
||||||
|
|
||||||
[workspace.lints.clippy]
|
[workspace.lints.clippy]
|
||||||
# Groups. Keep alphabetically sorted
|
# Groups. Keep alphabetically sorted
|
||||||
|
|
@ -79,7 +78,7 @@ name = "grapevine"
|
||||||
description = "A Matrix homeserver written in Rust"
|
description = "A Matrix homeserver written in Rust"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
|
||||||
# See also `rust-toolchain.toml`
|
# See also `rust-toolchain.toml`
|
||||||
rust-version = "1.85.0"
|
rust-version = "1.85.0"
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ impl service::rooms::user::Data for KeyValueDatabase {
|
||||||
let roomid_index = key
|
let roomid_index = key
|
||||||
.iter()
|
.iter()
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.find(|(_, &b)| b == 0xFF)
|
.find(|&(_, &b)| b == 0xFF)
|
||||||
.ok_or_else(|| {
|
.ok_or_else(|| {
|
||||||
Error::bad_database(
|
Error::bad_database(
|
||||||
"Invalid userroomid_joined in db.",
|
"Invalid userroomid_joined in db.",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue