mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Make clippy happy
This commit is contained in:
parent
7ba23044e6
commit
3f74f3b845
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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)*
|
||||
|
|
Loading…
Reference in a new issue