Skip to content

Commit 3f74f3b

Browse files
committed
Make clippy happy
1 parent 7ba2304 commit 3f74f3b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

macros/src/codegen/idle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn codegen(
5959
analysis,
6060
extra,
6161
));
62-
let idle_doc = &format!(" User provided idle function");
62+
let idle_doc = " User provided idle function".to_string();
6363

6464
let attrs = &idle.attrs;
6565
let context = &idle.context;

macros/src/codegen/init.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> CodegenResult {
6666
})
6767
.collect();
6868

69-
let shared_resources_doc = &format!(" RTIC shared resource struct");
70-
let local_resources_doc = &format!(" RTIC local resource struct");
69+
let shared_resources_doc = " RTIC shared resource struct".to_string();
70+
let local_resources_doc = " RTIC local resource struct".to_string();
7171
root_init.push(quote! {
7272
#[doc = #shared_resources_doc]
7373
struct #shared {
@@ -81,7 +81,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> CodegenResult {
8181
});
8282

8383
let user_init_return = quote! {#shared, #local, #name::Monotonics};
84-
let user_init_doc = &format!(" User provided init function");
84+
let user_init_doc = " User provided init function".to_string();
8585

8686
let user_init = quote!(
8787
#(#attrs)*

0 commit comments

Comments
 (0)