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/hardware_task.rs | |
| parent | 6d252785e83218eeb5d080836281c90b86ca0e03 (diff) | |
Clippy fixes
Diffstat (limited to 'macros/src/syntax/parse/hardware_task.rs')
| -rw-r--r-- | macros/src/syntax/parse/hardware_task.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/macros/src/syntax/parse/hardware_task.rs b/macros/src/syntax/parse/hardware_task.rs index ff94bc5..6207e56 100644 --- a/macros/src/syntax/parse/hardware_task.rs +++ b/macros/src/syntax/parse/hardware_task.rs @@ -39,9 +39,8 @@ impl HardwareTask { Err(parse::Error::new( span, - &format!( - "this task handler must have type signature `fn({}::Context)`", - name + format!( + "this task handler must have type signature `fn({name}::Context)`" ), )) } @@ -83,9 +82,8 @@ impl HardwareTask { Err(parse::Error::new( span, - &format!( - "this task handler must have type signature `fn({}::Context)`", - name + format!( + "this task handler must have type signature `fn({name}::Context)`" ), )) } |
