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
This commit is contained in:
Johannes Altmanninger
2025-10-19 12:46:09 +02:00
parent 4f48797a09
commit 1fe6b28877

View File

@@ -1 +1,2 @@
edition = "2024"
style_edition = "2024"