diff options
| author | HampusM <hampus@hampusmat.com> | 2026-05-23 19:46:46 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-05-23 19:52:55 +0200 |
| commit | 02afe68342870ce4f37d7e8fb45c985397d6e08d (patch) | |
| tree | a3a83450ea11ed9b6131aac5aca587418f20e708 /engine-macros/Cargo.toml | |
| parent | aa83c5cbc21227a5c647063efcaaca178884da9f (diff) | |
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<KeywordT: Keyword>(value: &str, line_no: usize) -> Result<Self, ParsingError> {
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<KeywordT: Keyword>(value: &str, line_no: usize)
-> Result<Self, ParsingError>
{
todo!();
}
}
```
Diffstat (limited to 'engine-macros/Cargo.toml')
| -rw-r--r-- | engine-macros/Cargo.toml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine-macros/Cargo.toml b/engine-macros/Cargo.toml index 7470567..d7a1275 100644 --- a/engine-macros/Cargo.toml +++ b/engine-macros/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "engine-macros" version = "0.1.0" -edition = "2024" +edition = "2021" [lib] proc-macro = true |
