aboutsummaryrefslogtreecommitdiff
path: root/macros/src/codegen/util.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2021-12-25 14:58:30 +0000
committerGravatar GitHub <noreply@github.com> 2021-12-25 14:58:30 +0000
commitb74ca90f6049f54d856ca182f554448b348ff2bc (patch)
tree8845460c0caa37e4d60b60c09c0ca5a3fdcc5df4 /macros/src/codegen/util.rs
parentc78177c37e3192c7a41a3ea8e7c139751c1a8989 (diff)
parentc297b4ee8d619d903b1b1673e47a8df25637d01b (diff)
downloadrtic-b74ca90f6049f54d856ca182f554448b348ff2bc.tar.gz
rtic-b74ca90f6049f54d856ca182f554448b348ff2bc.tar.zst
rtic-b74ca90f6049f54d856ca182f554448b348ff2bc.zip
Merge #564
564: Clippy lints r=korken89 a=AfoHT Co-authored-by: Henrik Tjäder <henrik@grepit.se>
Diffstat (limited to 'macros/src/codegen/util.rs')
-rw-r--r--macros/src/codegen/util.rs6
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(),
)
}