mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-24 14:58:09 +00:00
CI: run cargo fmt after build
This commit is contained in:
parent
606df17bd8
commit
dc0e7b3996
2 changed files with 11 additions and 6 deletions
16
.github/workflows/rust.yml
vendored
16
.github/workflows/rust.yml
vendored
|
@ -51,12 +51,18 @@ jobs:
|
|||
|
||||
- name: build tools
|
||||
working-directory: ./tools
|
||||
run: cargo build --verbose
|
||||
run: |
|
||||
cargo build --verbose
|
||||
cargo fmt --all -- --check
|
||||
|
||||
- name: build beginner/apps
|
||||
- name: build and fmt beginner/apps
|
||||
working-directory: ./beginner/apps
|
||||
run: cargo build --verbose
|
||||
run: |
|
||||
cargo build --verbose
|
||||
cargo fmt --all -- --check
|
||||
|
||||
- name: build advanced/firmware
|
||||
- name: build and fmt advanced/firmware
|
||||
working-directory: ./advanced/firmware
|
||||
run: cargo build --verbose
|
||||
run: |
|
||||
cargo build --verbose
|
||||
cargo fmt --all -- --check
|
|
@ -44,7 +44,6 @@ fn on_event(usbd: &USBD, event: Event) {
|
|||
Event::UsbEp0DataDone => todo!(),
|
||||
|
||||
Event::UsbEp0Setup => {
|
||||
|
||||
// the BMREQUESTTYPE register contains information about data recipient, transfer type and direction
|
||||
let bmrequesttype = usbd.bmrequesttype.read().bits() as u8;
|
||||
// the BREQUEST register stores the type of the current request (e.g. SET_ADDRESS, GET_DESCRIPTOR, ...)
|
||||
|
|
Loading…
Reference in a new issue