File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 20
20
- stm32h562
21
21
- stm32h563
22
22
- stm32h573
23
+ features :
24
+ - rand
23
25
env : # Peripheral Feature flags
24
26
FLAGS : rt,log
25
27
42
44
- name : Install thumbv8m rust target
43
45
run : rustup target add thumbv8m.main-none-eabihf
44
46
- name : Build
45
- run : cargo build --verbose --release --examples --target thumbv8m.main-none-eabihf --features ${{ matrix.mcu }},${{ env.FLAGS }}
47
+ run : cargo build --verbose --release --examples --target thumbv8m.main-none-eabihf --features ${{ matrix.mcu }},${{ matrix.features }},${{ env.FLAGS }}
46
48
- name : Test
47
- run : cargo test --lib --target x86_64-unknown-linux-gnu --features ${{ matrix.mcu }},${{ env.FLAGS }}
49
+ run : cargo test --lib --target x86_64-unknown-linux-gnu --features ${{ matrix.mcu }},${{ matrix.features }},${{ env.FLAGS }}
Original file line number Diff line number Diff line change @@ -433,9 +433,9 @@ impl<MODE> rand_core::RngCore for Rng<MODE> {
433
433
& mut self ,
434
434
dest : & mut [ u8 ] ,
435
435
) -> Result < ( ) , rand_core:: Error > {
436
- self . fill ( dest) . map_err ( |e | {
436
+ self . fill ( dest) . map_err ( |_e | {
437
437
core:: num:: NonZeroU32 :: new (
438
- rand_core:: Error :: CUSTOM_START + e as u32 ,
438
+ rand_core:: Error :: CUSTOM_START ,
439
439
)
440
440
// This should never fail as long as no enum variant is equal to 0
441
441
. expect ( "Internal hal error" )
You can’t perform that action at this time.
0 commit comments