Skip to content

Commit b2e2e9d

Browse files
authored
Merge pull request #177 from dimpolo/CI
fix CI warnings
2 parents 72b0bea + af743e6 commit b2e2e9d

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed
File renamed without changes.

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2626
- `invalid_reference_casting` Compilation error in spi.rs for Rust version 1.73+ (
2727
See [PR#112431](https://github.com/rust-lang/rust/pull/112431) for more info)
2828
- `unused_doc_comments` Warning in rcc.rs
29+
- Fixed some warnings #177
2930

3031
## [v0.18.0] - 2021-11-14
3132

examples/dac.rs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![no_main]
33
#![no_std]
44

5-
use cortex_m;
65
use cortex_m_rt as rt;
76
use panic_halt as _;
87

examples/pwm_complementary.rs

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Halt on panic
66
use panic_halt as _;
77

8-
use cortex_m;
98
use cortex_m_rt::entry;
109

1110
use stm32f0xx_hal as hal;

examples/usb_serial.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn main() -> ! {
3636
// Configure the on-board LED (LD3, green)
3737
let gpiob = dp.GPIOB.split(&mut rcc);
3838
let mut led = cortex_m::interrupt::free(|cs| gpiob.pb3.into_push_pull_output(cs));
39-
led.set_low(); // Turn off
39+
led.set_low().ok(); // Turn off
4040

4141
let gpioa = dp.GPIOA.split(&mut rcc);
4242

@@ -66,7 +66,7 @@ fn main() -> ! {
6666

6767
match serial.read(&mut buf) {
6868
Ok(count) if count > 0 => {
69-
led.set_high(); // Turn on
69+
led.set_high().ok(); // Turn on
7070

7171
// Echo back in upper case
7272
for c in buf[0..count].iter_mut() {
@@ -88,6 +88,6 @@ fn main() -> ! {
8888
_ => {}
8989
}
9090

91-
led.set_low(); // Turn off
91+
led.set_low().ok(); // Turn off
9292
}
9393
}

src/gpio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -758,4 +758,4 @@ gpio!([
758758
PF9: (pf9, 9, Input<Floating>),
759759
PF10: (pf10, 10, Input<Floating>),
760760
]
761-
]);
761+
]);

src/signature.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//!
33
//! (stored in flash memory)
44
5-
use core::str::from_utf8_unchecked;
6-
75
/// This is the test voltage in millivolts of the calibration done at the factory
86
pub const VDDA_CALIB: u32 = 3300;
97

@@ -54,7 +52,7 @@ impl Uid {
5452

5553
/// Lot number
5654
pub fn lot_num(&self) -> &str {
57-
unsafe { from_utf8_unchecked(&self.waf_lot[1..]) }
55+
unsafe { core::str::from_utf8_unchecked(&self.waf_lot[1..]) }
5856
}
5957
}
6058

0 commit comments

Comments
 (0)