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:
name: cargo-check
runs-on: ubuntu-20.04
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v2
- run: sudo apt-get update

View file

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

View file

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

View file

@ -4,6 +4,8 @@ jobs:
check:
name: Check and Lint
runs-on: ubuntu-20.04
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v2
- 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
#![deny(missing_docs)]
#![deny(warnings)]
#![no_std]
extern crate cortex_m;