Skip to content

Commit

Permalink
remove unused import, added derives to FlexCanMailboxCSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
dstric-aqueduct committed Dec 24, 2022
1 parent f73b2b8 commit 228a000
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions imxrt-hal/src/can/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl PartialEq for Frame {
}
}

#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Clone, Copy)]
#[repr(u8)]
pub enum FlexCanMailboxCSCode {
RxInactive = 0b0000,
Expand Down Expand Up @@ -235,8 +235,8 @@ impl CodeReg {
}

/// Get the 4 bit code content for a CodeReg.
///
/// This may return the variant [`FlexCanMailboxCSCode::Unknown`],
///
/// This may return the variant [`FlexCanMailboxCSCode::Unknown`],
/// which must be handled appropriately for the intended usage.
#[inline(always)]
pub fn code(&self) -> FlexCanMailboxCSCode {
Expand Down Expand Up @@ -311,7 +311,7 @@ impl IdReg {
const STANDARD_SHIFT: u32 = 18;
const EXTENDED_SHIFT: u32 = 0;

/// Creates a new `IdReg`
/// Creates a new `IdReg`
#[inline(always)]
fn new(id: u32) -> Self {
Self(id)
Expand Down
1 change: 0 additions & 1 deletion imxrt-hal/src/can/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ use crate::iomuxc::can;
use crate::iomuxc::consts::{Unsigned, U1, U2};
use crate::ral;

use core::convert::Infallible;
use core::marker::PhantomData;

/// Error from the FlexCan peripheral.
Expand Down

0 comments on commit 228a000

Please sign in to comment.