Skip to content

Commit 6944a97

Browse files
bors[bot]eldruin
andauthored
Merge #273
273: Some minor improvements r=ryankurte a=eldruin - Update codeowners - Remove unnecessary imports - Replace `into_iter()` with `iter()` when used on reference - Deny warnings on cargo check and cargo test on CI (but allow them on clippy since that is a fast-moving target) Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents 3907cf7 + 60dfd30 commit 6944a97

File tree

9 files changed

+9
-14
lines changed

9 files changed

+9
-14
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @rust-embedded/hal @ilya-epifanov @thejpster
1+
* @rust-embedded/hal

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55

66
name: Continuous integration
77

8+
env:
9+
RUSTFLAGS: '--deny warnings'
10+
811
jobs:
912
ci-linux:
1013
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55

66
name: Test Suite
77

8+
env:
9+
RUSTFLAGS: '--deny warnings'
10+
811
jobs:
912
ci-linux:
1013
runs-on: ubuntu-latest

src/adc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Analog-digital conversion traits
22
3-
use nb;
4-
53
/// A marker trait to identify MCU pins that can be used as inputs to an ADC channel.
64
///
75
/// This marker trait denotes an object, i.e. a GPIO pin, that is ready for use as an input to the

src/capture.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Input capture
22
3-
use nb;
4-
53
/// Input capture
64
///
75
/// # Examples

src/fmt.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ where
99
{
1010
fn write_str(&mut self, s: &str) -> Result {
1111
let _ = s
12-
.as_bytes()
13-
.into_iter()
14-
.map(|c| nb::block!(self.write(Word::from(*c))))
12+
.bytes()
13+
.map(|c| nb::block!(self.write(Word::from(c))))
1514
.last();
1615
Ok(())
1716
}

src/serial.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Serial interface
22
3-
use nb;
4-
53
/// Read half of a serial interface
64
///
75
/// Some serial interfaces support different data sizes (8 bits, 9 bits, etc.);

src/spi.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Serial Peripheral Interface
22
3-
use nb;
4-
53
/// Full duplex (master mode)
64
///
75
/// # Notes

src/timer.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//! Timers
22
3-
use nb;
4-
53
/// A count down timer
64
///
75
/// # Contract

0 commit comments

Comments
 (0)