Skip to content

Commit fc207d1

Browse files
author
Henrik Snöman
committed
Fixed missed error
1 parent e225af1 commit fc207d1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
logger:
2424
- log
2525
- defmt
26+
features:
27+
- rand
2628
env: # Peripheral Feature flags
2729
FLAGS: rt
2830

@@ -45,6 +47,6 @@ jobs:
4547
- name: Install thumbv8m rust target
4648
run: rustup target add thumbv8m.main-none-eabihf
4749
- name: Build
48-
run: cargo build --verbose --release --examples --target thumbv8m.main-none-eabihf --features ${{ matrix.mcu }},${{ matrix.logger }},${{ env.FLAGS }}
50+
run: cargo build --verbose --release --examples --target thumbv8m.main-none-eabihf --features ${{ matrix.mcu }},${{ matrix.features }},${{ matrix.logger }},${{ env.FLAGS }}
4951
- name: Test
50-
run: cargo test --lib --target x86_64-unknown-linux-gnu --features ${{ matrix.mcu }},${{ matrix.logger }},${{ env.FLAGS }}
52+
run: cargo test --lib --target x86_64-unknown-linux-gnu --features ${{ matrix.mcu }},${{ matrix.features }},${{ matrix.logger }},${{ env.FLAGS }}

src/rng.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,9 @@ impl<MODE> rand_core::RngCore for Rng<MODE> {
433433
&mut self,
434434
dest: &mut [u8],
435435
) -> Result<(), rand_core::Error> {
436-
self.fill(dest).map_err(|e| {
436+
self.fill(dest).map_err(|_e| {
437437
core::num::NonZeroU32::new(
438-
rand_core::Error::CUSTOM_START + e as u32,
438+
rand_core::Error::CUSTOM_START,
439439
)
440440
// This should never fail as long as no enum variant is equal to 0
441441
.expect("Internal hal error")

0 commit comments

Comments
 (0)