diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2023-01-08 21:30:53 +0100 |
|---|---|---|
| committer | Henrik Tjäder <henrik@tjaders.com> | 2023-03-01 00:33:29 +0100 |
| commit | c40c89bb4edc22c4a60d8677c660a9ab7eb47e92 (patch) | |
| tree | 3ba72592f324dd7bef32773211b093e4949d6ff0 /macros/src/syntax/parse/init.rs | |
| parent | 6d252785e83218eeb5d080836281c90b86ca0e03 (diff) | |
Clippy fixes
Diffstat (limited to 'macros/src/syntax/parse/init.rs')
| -rw-r--r-- | macros/src/syntax/parse/init.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/macros/src/syntax/parse/init.rs b/macros/src/syntax/parse/init.rs index 61d3539..23130c8 100644 --- a/macros/src/syntax/parse/init.rs +++ b/macros/src/syntax/parse/init.rs @@ -41,9 +41,8 @@ impl Init { Err(parse::Error::new( span, - &format!( - "the `#[init]` function must have signature `fn({}::Context) -> (Shared resources struct, Local resources struct)`", - name + format!( + "the `#[init]` function must have signature `fn({name}::Context) -> (Shared resources struct, Local resources struct)`" ), )) } |
