CI: run cargo fmt after build

This commit is contained in:
Lotte Steenbrink 2020-07-09 10:15:07 +02:00
parent 606df17bd8
commit dc0e7b3996
2 changed files with 11 additions and 6 deletions

View file

@ -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

View file

@ -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, ...)