Skip to content

Commit

Permalink
Fix clippy lint
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Egger <[email protected]>
  • Loading branch information
therealprof committed Oct 29, 2023
1 parent cbdf8ff commit 004f844
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions microbit-common/src/v2/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ pub trait Default {

impl Default for AdcConfig {
fn default_10bit() -> Self {
let mut adcconfig: AdcConfig = AdcConfig::default();
adcconfig.resolution = hal::saadc::Resolution::_10BIT;
adcconfig
AdcConfig { resolution: hal::saadc::Resolution::_10BIT, ..AdcConfig::default() }
}
}

0 comments on commit 004f844

Please sign in to comment.