Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ upper_case_acronyms = "allow"


declare-interior-mutable-const = "allow"
from-over-into = "allow"
let_and_return = "allow"
missing_safety_doc = "allow"
needless-range-loop = "allow"
Expand Down
6 changes: 3 additions & 3 deletions chips/nrf5x/src/pinmux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ impl Pinmux {
}
}

impl Into<u32> for Pinmux {
fn into(self) -> u32 {
self.0
impl From<Pinmux> for u32 {
fn from(val: Pinmux) -> Self {
val.0
}
}
6 changes: 3 additions & 3 deletions chips/rp2040/src/deferred_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ impl TryFrom<usize> for DeferredCallTask {
}
}

impl Into<usize> for DeferredCallTask {
fn into(self) -> usize {
self as usize
impl From<DeferredCallTask> for usize {
fn from(val: DeferredCallTask) -> Self {
val as usize
}
}
6 changes: 3 additions & 3 deletions chips/stm32f4xx/src/chip_specific/flash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ impl RegisterToFlashLatency for FlashLatency16 {
}
}

impl Into<u32> for FlashLatency16 {
fn into(self) -> u32 {
self as u32
impl From<FlashLatency16> for u32 {
fn from(val: FlashLatency16) -> Self {
val as u32
}
}