Skip to content

Commit b08e830

Browse files
committed
Merge branch 'clippy-1.89-warnings' into remove-binary-info-unless-no-os
2 parents 66d8f68 + b123e8a commit b08e830

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

rp2040-hal/src/gpio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ impl<I: PinId, F: func::Function, P: PullType> Pin<I, F, P> {
800800
/// meaningful result.
801801
///
802802
/// Calling this function does not set the pad's input enable bit.
803-
pub fn as_input(&self) -> AsInputPin<I, F, P> {
803+
pub fn as_input(&self) -> AsInputPin<'_, I, F, P> {
804804
AsInputPin(self)
805805
}
806806
}

rp2040-hal/src/multicore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl<'p> Multicore<'p> {
223223
}
224224

225225
/// Get the available |Core| instances.
226-
pub fn cores(&mut self) -> &'p mut [Core] {
226+
pub fn cores(&mut self) -> &mut [Core<'p>] {
227227
&mut self.cores
228228
}
229229
}

rp235x-hal/src/gpio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ impl<I: PinId, F: func::Function, P: PullType> Pin<I, F, P> {
819819
/// meaningful result.
820820
///
821821
/// Calling this function does not set the pad's input enable bit.
822-
pub fn as_input(&self) -> AsInputPin<I, F, P> {
822+
pub fn as_input(&self) -> AsInputPin<'_, I, F, P> {
823823
AsInputPin(self)
824824
}
825825
}

rp235x-hal/src/multicore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ impl<'p> Multicore<'p> {
231231
}
232232

233233
/// Get the available |Core| instances.
234-
pub fn cores(&mut self) -> &'p mut [Core] {
234+
pub fn cores(&mut self) -> &mut [Core<'p>] {
235235
&mut self.cores
236236
}
237237
}

rp235x-hal/src/reboot.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Functions for rebooting the chip using the ROM.
22
33
/// Types of reboot we support
4+
#[allow(unpredictable_function_pointer_comparisons)]
45
#[derive(Debug, Clone, PartialEq, Eq)]
56
pub enum RebootKind {
67
/// A normal reboot

0 commit comments

Comments
 (0)