Make clippy happy

This commit is contained in:
Henrik Tjäder 2023-01-22 00:35:03 +01:00
parent 7ba23044e6
commit 3f74f3b845
2 changed files with 4 additions and 4 deletions

View file

@ -59,7 +59,7 @@ pub fn codegen(
analysis,
extra,
));
let idle_doc = &format!(" User provided idle function");
let idle_doc = " User provided idle function".to_string();
let attrs = &idle.attrs;
let context = &idle.context;

View file

@ -66,8 +66,8 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> CodegenResult {
})
.collect();
let shared_resources_doc = &format!(" RTIC shared resource struct");
let local_resources_doc = &format!(" RTIC local resource struct");
let shared_resources_doc = " RTIC shared resource struct".to_string();
let local_resources_doc = " RTIC local resource struct".to_string();
root_init.push(quote! {
#[doc = #shared_resources_doc]
struct #shared {
@ -81,7 +81,7 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> CodegenResult {
});
let user_init_return = quote! {#shared, #local, #name::Monotonics};
let user_init_doc = &format!(" User provided init function");
let user_init_doc = " User provided init function".to_string();
let user_init = quote!(
#(#attrs)*