From 25d2cc7c9826295ea535e47863b26a18efe349ef Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 21 Feb 2025 12:15:13 +0100 Subject: [PATCH] Migrate to 2024 edition --- Cargo.toml | 9 ++------- rustfmt.toml | 1 + 2 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 rustfmt.toml diff --git a/Cargo.toml b/Cargo.toml index 96c02c1..a58b43d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..8153a3d --- /dev/null +++ b/rustfmt.toml @@ -0,0 +1 @@ +style_edition = "2021"