From 02afe68342870ce4f37d7e8fb45c985397d6e08d Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 23 May 2026 19:46:46 +0200 Subject: refactor(engine): use Rust edition 2021 This change is because of a rustfmt bug in the 2024 edition. For example, the following code snippet: ``` struct Value {} struct ParsingError {} trait Keyword {} impl Value { fn parse(value: &str, line_no: usize) -> Result { todo!(); } } ``` when formatted with `rustfmt --edition 2021 --emit stdout --config max_width=90,brace_style=AlwaysNextLine` becomes: ``` struct Value {} struct ParsingError {} trait Keyword {} impl Value { fn parse(value: &str, line_no: usize) -> Result { todo!(); } } ``` --- engine/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/Cargo.toml') diff --git a/engine/Cargo.toml b/engine/Cargo.toml index 9b91df8..6187bb4 100644 --- a/engine/Cargo.toml +++ b/engine/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "engine" version = "0.1.0" -edition = "2024" +edition = "2021" [dependencies] glutin = "0.32.3" -- cgit v1.2.3-18-g5258