Run cargo fmt

This commit is contained in:
Cristian Milatinov 2025-07-05 01:15:15 -04:00
parent fb21fcf4f1
commit 1f87e47831
2 changed files with 4 additions and 4 deletions

View File

@ -336,14 +336,14 @@ impl From<DummyCycles> for u8 {
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub enum SampleShifting { pub enum SampleShifting {
None, None,
HalfCycle HalfCycle,
} }
impl From<SampleShifting> for bool { impl From<SampleShifting> for bool {
fn from(value: SampleShifting) -> Self { fn from(value: SampleShifting) -> Self {
match value { match value {
SampleShifting::None => false, SampleShifting::None => false,
SampleShifting::HalfCycle => true SampleShifting::HalfCycle => true,
} }
} }
} }

View File

@ -70,7 +70,7 @@ impl Default for Config {
prescaler: 128, prescaler: 128,
fifo_threshold: FIFOThresholdLevel::_17Bytes, fifo_threshold: FIFOThresholdLevel::_17Bytes,
cs_high_time: ChipSelectHighTime::_5Cycle, cs_high_time: ChipSelectHighTime::_5Cycle,
sample_shifting: SampleShifting::None sample_shifting: SampleShifting::None,
} }
} }
} }