@@ -343,7 +343,7 @@ impl CFGR {
343
343
/// Panics if conversion from `Megahertz` to `Hertz` produces a value greater then `u32::MAX`.
344
344
pub fn use_hse ( mut self , freq : Megahertz ) -> Self {
345
345
let freq: Hertz = crate :: expect!( freq. try_into( ) , "ConversionError" ) ;
346
- self . hse = Some ( * freq. integer ( ) ) ;
346
+ self . hse = Some ( freq. integer ( ) ) ;
347
347
self
348
348
}
349
349
@@ -376,7 +376,7 @@ impl CFGR {
376
376
/// Panics if conversion from `Megahertz` to `Hertz` produces a value greater then `u32::MAX`.
377
377
pub fn hclk ( mut self , freq : Megahertz ) -> Self {
378
378
let freq: Hertz = crate :: expect!( freq. try_into( ) , "ConversionError" ) ;
379
- self . hclk = Some ( * freq. integer ( ) ) ;
379
+ self . hclk = Some ( freq. integer ( ) ) ;
380
380
self
381
381
}
382
382
@@ -392,7 +392,7 @@ impl CFGR {
392
392
/// Panics if conversion from `Megahertz` to `Hertz` produces a value greater then `u32::MAX`.
393
393
pub fn pclk1 ( mut self , freq : Megahertz ) -> Self {
394
394
let freq: Hertz = crate :: expect!( freq. try_into( ) , "ConversionError" ) ;
395
- self . pclk1 = Some ( * freq. integer ( ) ) ;
395
+ self . pclk1 = Some ( freq. integer ( ) ) ;
396
396
self
397
397
}
398
398
@@ -414,7 +414,7 @@ impl CFGR {
414
414
/// Panics if conversion from `Megahertz` to `Hertz` produces a value greater then `u32::MAX`.
415
415
pub fn pclk2 ( mut self , freq : Megahertz ) -> Self {
416
416
let freq: Hertz = crate :: expect!( freq. try_into( ) , "ConversionError" ) ;
417
- self . pclk2 = Some ( * freq. integer ( ) ) ;
417
+ self . pclk2 = Some ( freq. integer ( ) ) ;
418
418
self
419
419
}
420
420
@@ -439,7 +439,7 @@ impl CFGR {
439
439
/// Panics if conversion from `Megahertz` to `Hertz` produces a value greater then `u32::MAX`.
440
440
pub fn sysclk ( mut self , freq : Megahertz ) -> Self {
441
441
let freq: Hertz = crate :: expect!( freq. try_into( ) , "ConversionError" ) ;
442
- self . sysclk = Some ( * freq. integer ( ) ) ;
442
+ self . sysclk = Some ( freq. integer ( ) ) ;
443
443
self
444
444
}
445
445
0 commit comments