Skip to content

Commit

Permalink
clippy cry
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcole1340 committed Nov 4, 2022
1 parent 02c4a38 commit d7e59a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl RxBufIdent {
/// * `read_data` - Function which reads from the corresponding `DATA`
/// register. The function should fill the mutable slice with bytes
/// received from the CAN bus.
pub fn into_frame<'a, SPIE: Debug, HALE: Debug>(
pub fn into_frame<SPIE: Debug, HALE: Debug>(
self,
read_data: impl FnOnce(&mut [u8]) -> Result<(), SPIE, HALE>,
) -> Result<CanFrame, SPIE, HALE> {
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ where
/// Resets the MCP2515.
pub fn reset(&mut self, delay: &mut impl DelayMs<u8>) -> Result<(), SPIE, CSE> {
self.transfer(&mut [Instruction::Reset as u8])?;
// Sleep for 5ms after reset - if the device is in sleep mode it won't respond immediately
// Sleep for 5ms after reset - if the device is in sleep mode it won't respond
// immediately
delay.delay_ms(5);

Ok(())
Expand Down
2 changes: 1 addition & 1 deletion src/regs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ pub struct Rxb1Ctrl {
}

impl Rxb1Ctrl {
pub const MASK_RXM: Self = Self::from_bytes([0b0110_000]);
pub const MASK_RXM: Self = Self::from_bytes([0b011_0000]);
pub const MASK_FILTHIT: Self = Self::from_bytes([0b0000_0111]);
}

Expand Down

0 comments on commit d7e59a7

Please sign in to comment.