Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Jan 6, 2025
1 parent 681f048 commit 45b9780
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions esp-hal/src/spi/master.rs
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ impl Clone for BusClockConfig {

Self {
reg: self.reg.clone(),
frequency: self.frequency.clone(),
clock_source: self.clock_source.clone(),
frequency: self.frequency,
clock_source: self.clock_source,
}
}
}
Expand Down Expand Up @@ -2989,7 +2989,7 @@ impl Driver {
}

fn apply_config(&self, config: &Config) -> Result<(), ConfigError> {
self.ch_bus_freq(&config.clock);
self.ch_bus_freq(&config.clock)?;
self.set_bit_order(config.read_bit_order, config.write_bit_order);
self.set_data_mode(config.mode);
Ok(())
Expand Down

0 comments on commit 45b9780

Please sign in to comment.