From 1fe6b288779be92006859aa1a2f30748fd122507 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sun, 19 Oct 2025 12:46:09 +0200 Subject: [PATCH] rustfmt.toml: specify edition to allow 2024 syntax cargo fmt works but "rustfmt src/env_dispatch.rs" fails, error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `"C"` --> src/env_dispatch.rs:572:63 | 572 | let loc_ptr = unsafe { libc::setlocale(libc::LC_NUMERIC, c"C".as_ptr().cast()) }; | -^^ Fix that as suggested --- .rustfmt.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.rustfmt.toml b/.rustfmt.toml index 350113681..f3e454b61 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1 +1,2 @@ +edition = "2024" style_edition = "2024"