Skip to content

Commit 3411886

Browse files
committed
Fix some warnings
1 parent e9921b7 commit 3411886

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/capture.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ pub trait HrCapture {
8686
///
8787
/// where captures during down counting count as negative (before the upcount)
8888
///
89-
/// ```txt
89+
/// ```text
9090
/// Counter
9191
/// ---------------------------------- <--- period
9292
/// \ ^ /
@@ -117,7 +117,7 @@ pub trait HrCapture {
117117
///
118118
/// where captures during down counting count as negative (before the upcount)
119119
///
120-
/// ```
120+
/// ```text
121121
/// Counter
122122
/// ---------------------------------- <--- period
123123
/// \ ^ /

src/control.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,19 @@ impl HrControltExt for HRTIM_COMMON {
1919
let common = unsafe { &*HRTIM_COMMON::ptr() };
2020

2121
let rcc_ptr = {
22-
#[cfg(feature = "stm32g4")] unsafe {
22+
#[cfg(feature = "stm32g4")]
23+
unsafe {
2324
&*stm32::RCC::ptr()
2425
}
2526

26-
#[cfg(feature = "stm32f3")] {
27+
#[cfg(feature = "stm32f3")]
28+
{
2729
&mut rcc.apb2
2830
}
2931
};
3032

3133
<HRTIM_COMMON as Enable>::enable(rcc_ptr);
3234
<HRTIM_COMMON as Reset>::reset(rcc_ptr);
33-
3435

3536
// Start calibration procedure
3637
common

0 commit comments

Comments
 (0)