diff options
author | 2021-12-25 13:17:16 +0100 | |
---|---|---|
committer | 2021-12-25 13:17:16 +0100 | |
commit | c297b4ee8d619d903b1b1673e47a8df25637d01b (patch) | |
tree | 8845460c0caa37e4d60b60c09c0ca5a3fdcc5df4 /macros/src/codegen/util.rs | |
parent | c78177c37e3192c7a41a3ea8e7c139751c1a8989 (diff) | |
download | rtic-c297b4ee8d619d903b1b1673e47a8df25637d01b.tar.gz rtic-c297b4ee8d619d903b1b1673e47a8df25637d01b.tar.zst rtic-c297b4ee8d619d903b1b1673e47a8df25637d01b.zip |
Clippy lints
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r-- | macros/src/codegen/util.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/macros/src/codegen/util.rs b/macros/src/codegen/util.rs index 831718ae..e8654345 100644 --- a/macros/src/codegen/util.rs +++ b/macros/src/codegen/util.rs @@ -76,7 +76,7 @@ pub fn interrupt_ident() -> Ident { } pub fn timer_queue_marker_ident() -> Ident { - mark_internal_name(&"TIMER_QUEUE_MARKER") + mark_internal_name("TIMER_QUEUE_MARKER") } /// Whether `name` is an exception with configurable priority @@ -225,7 +225,7 @@ pub fn rq_ident(priority: u8) -> Ident { /// Generates an identifier for the `enum` of `schedule`-able tasks pub fn schedule_t_ident() -> Ident { - Ident::new(&"SCHED_T", Span::call_site()) + Ident::new("SCHED_T", Span::call_site()) } /// Generates an identifier for the `enum` of `spawn`-able tasks @@ -278,7 +278,7 @@ pub fn need_to_lock_ident(name: &Ident) -> Ident { /// The name to get better RT flag errors pub fn rt_err_ident() -> Ident { Ident::new( - &"you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml", + "you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml", Span::call_site(), ) } |