Skip to content

Commit 34954bc

Browse files
author
Henrik Tjäder
committed
Remove #[deny(warnings)], but deny warnings for CI
1 parent e49b7f7 commit 34954bc

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ jobs:
7676
target: ${{ matrix.target }}
7777
override: true
7878

79+
- name: Fail on warnings
80+
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
81+
7982
- name: cargo check
8083
uses: actions-rs/cargo@v1
8184
with:
@@ -125,6 +128,10 @@ jobs:
125128
toolchain: ${{ matrix.toolchain }}
126129
target: ${{ matrix.target }}
127130
override: true
131+
132+
- name: Fail on warnings
133+
run: sed -i 's,//deny_warnings_placeholder_for_ci,#![deny(warnings)],' src/lib.rs
134+
128135
- uses: actions-rs/cargo@v1
129136
with:
130137
use-cross: false

mock/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#![deny(rust_2018_compatibility)]
22
#![deny(rust_2018_idioms)]
3-
#![deny(warnings)]
43

54
#[allow(unused_extern_crates)]
65
extern crate proc_macro;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
#![deny(missing_docs)]
44
#![deny(rust_2018_compatibility)]
55
#![deny(rust_2018_idioms)]
6-
#![deny(warnings)]
76
#![doc(
87
html_logo_url = "https://raw.githubusercontent.com/rtic-rs/cortex-m-rtic/master/book/en/src/RTIC.svg",
98
html_favicon_url = "https://raw.githubusercontent.com/rtic-rs/cortex-m-rtic/master/book/en/src/RTIC.svg"
109
)]
10+
//deny_warnings_placeholder_for_ci
1111

1212
#[allow(unused_extern_crates)]
1313
extern crate proc_macro;

0 commit comments

Comments
 (0)