Deny warnings in ci

This commit is contained in:
Jonathan Nilsson 2021-07-19 18:49:06 +02:00 committed by 9names
parent 077cba68f5
commit 1bf47df553
5 changed files with 8 additions and 1 deletions

View file

@ -4,6 +4,8 @@ jobs:
check: check:
name: cargo-check name: cargo-check
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
env:
RUSTFLAGS: "-D warnings"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- run: sudo apt-get update - run: sudo apt-get update

View file

@ -3,6 +3,8 @@ name: Clippy check
jobs: jobs:
clippy_check: clippy_check:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
env:
RUSTFLAGS: "-D warnings"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1

View file

@ -4,6 +4,8 @@ jobs:
fmt: fmt:
name: Rustfmt name: Rustfmt
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
env:
RUSTFLAGS: "-D warnings"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1

View file

@ -4,6 +4,8 @@ jobs:
check: check:
name: Check and Lint name: Check and Lint
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
env:
RUSTFLAGS: "-D warnings"
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1

View file

@ -4,7 +4,6 @@
//! NOTE This HAL is still under active development. This API will remain volatile until 1.0.0 //! NOTE This HAL is still under active development. This API will remain volatile until 1.0.0
#![deny(missing_docs)] #![deny(missing_docs)]
#![deny(warnings)]
#![no_std] #![no_std]
extern crate cortex_m; extern crate cortex_m;