Migrate to 2024 edition

This commit is contained in:
Joscha 2025-02-21 12:15:13 +01:00
parent f45e66f572
commit 25d2cc7c98
2 changed files with 3 additions and 7 deletions

View file

@ -1,10 +1,10 @@
[workspace]
resolver = "2"
resolver = "3"
members = ["cove", "cove-*"]
[workspace.package]
version = "0.8.3"
edition = "2021"
edition = "2024"
[workspace.dependencies]
anyhow = "1.0.96"
@ -68,11 +68,6 @@ rust.unused_lifetimes = "warn"
rust.unused_qualifications = "warn"
# Clippy
clippy.use_self = "warn"
# Migrating to the 2024 edition
rust.rust_2024_compatibility = "warn"
rust.edition_2024_expr_fragment_specifier = { level = "allow", priority = 1 }
rust.if_let_rescope = { level = "allow", priority = 1 }
rust.tail_expr_drop_order = { level = "allow", priority = 1 }
[profile.dev.package."*"]
opt-level = 3

1
rustfmt.toml Normal file
View file

@ -0,0 +1 @@
style_edition = "2021"