Skip to content

Commit 817f728

Browse files
authored
Merge pull request #2135 from iced-rs/ci/deny-warnings
Deny warnings in `test` workflow
2 parents 217cbce + f98627a commit 817f728

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on: [push, pull_request]
33
jobs:
44
all:
55
runs-on: ${{ matrix.os }}
6+
env:
7+
RUSTFLAGS: --deny warnings
68
strategy:
79
matrix:
810
os: [ubuntu-latest, windows-latest, macOS-latest]

examples/lazy/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ enum Color {
4646
}
4747

4848
impl Color {
49-
const ALL: &[Color] = &[
49+
const ALL: &'static [Color] = &[
5050
Color::Black,
5151
Color::Red,
5252
Color::Orange,

examples/modal/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ enum Plan {
205205
}
206206

207207
impl Plan {
208-
pub const ALL: &[Self] = &[Self::Basic, Self::Pro, Self::Enterprise];
208+
pub const ALL: &'static [Self] =
209+
&[Self::Basic, Self::Pro, Self::Enterprise];
209210
}
210211

211212
impl fmt::Display for Plan {

examples/toast/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ mod toast {
210210
}
211211

212212
impl Status {
213-
pub const ALL: &[Self] =
213+
pub const ALL: &'static [Self] =
214214
&[Self::Primary, Self::Secondary, Self::Success, Self::Danger];
215215
}
216216

highlighter/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ pub enum Theme {
168168
}
169169

170170
impl Theme {
171-
pub const ALL: &[Self] = &[
171+
pub const ALL: &'static [Self] = &[
172172
Self::SolarizedDark,
173173
Self::Base16Mocha,
174174
Self::Base16Ocean,

0 commit comments

Comments
 (0)