From 0935051d8b35f79d85475fa3449315f31faf469d Mon Sep 17 00:00:00 2001 From: Dan Whitman Date: Fri, 24 Jan 2025 15:08:52 -0500 Subject: ATSAMD RTC monotonic referral in documentation (#1014) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * rtic-monotonics: Adds a section to the module documentation about ATSAMD chip monotonics provided in the `atsamd-hal` crate * rtic-monotonics: Adds a section to README listing the supported microcontroller platforms. * rtic-sync: Fix clippy complaints error: the following explicit lifetimes could be elided: 'a --> rtic-sync/src/signal.rs:113:6 | 113 | impl<'a, T: Copy> SignalReader<'a, T> { | ^^ ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `-D clippy::needless-lifetimes` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]` help: elide the lifetimes | 113 - impl<'a, T: Copy> SignalReader<'a, T> { 113 + impl SignalReader<'_, T> { * xtask: Clippy fix warning warning: elided lifetime has a name --> xtask/src/cargo_command.rs:427:14 | 420 | fn build_args<'i, T: Iterator>( | -- lifetime `'i` declared here ... 427 | ) -> Vec<&str> { | ^ this elided lifetime gets resolved as `'i` | = note: `#[warn(elided_named_lifetimes)]` on by default --------- Co-authored-by: Dan Whitman Co-authored-by: Henrik Tjäder --- rtic-sync/src/signal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rtic-sync') diff --git a/rtic-sync/src/signal.rs b/rtic-sync/src/signal.rs index a7bef0f..afe49bd 100644 --- a/rtic-sync/src/signal.rs +++ b/rtic-sync/src/signal.rs @@ -110,7 +110,7 @@ where } } -impl<'a, T: Copy> SignalReader<'a, T> { +impl SignalReader<'_, T> { /// Immediately read and evict the latest value stored in the Signal. fn take(&mut self) -> Store { critical_section::with(|_| { -- cgit v1.2.3