diff options
author | 2023-11-12 03:43:40 +0100 | |
---|---|---|
committer | 2023-11-12 03:43:40 +0100 | |
commit | 817f72868746461891ca4e74473c555f3b5c5703 (patch) | |
tree | 7aaf36889e79f4148b8cf92d9f22afcd781a9436 | |
parent | 217cbce8a12024708f565718e2a9798caef0d26e (diff) | |
parent | f98627a317615151681ca8b324052eb4a170b789 (diff) | |
download | iced-817f72868746461891ca4e74473c555f3b5c5703.tar.gz iced-817f72868746461891ca4e74473c555f3b5c5703.tar.bz2 iced-817f72868746461891ca4e74473c555f3b5c5703.zip |
Merge pull request #2135 from iced-rs/ci/deny-warnings
Deny warnings in `test` workflow
-rw-r--r-- | .github/workflows/test.yml | 2 | ||||
-rw-r--r-- | examples/lazy/src/main.rs | 2 | ||||
-rw-r--r-- | examples/modal/src/main.rs | 3 | ||||
-rw-r--r-- | examples/toast/src/main.rs | 2 | ||||
-rw-r--r-- | highlighter/src/lib.rs | 2 |
5 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a08033c9..9c5ee0d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,6 +3,8 @@ on: [push, pull_request] jobs: all: runs-on: ${{ matrix.os }} + env: + RUSTFLAGS: --deny warnings strategy: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] diff --git a/examples/lazy/src/main.rs b/examples/lazy/src/main.rs index 9bf17c56..01560598 100644 --- a/examples/lazy/src/main.rs +++ b/examples/lazy/src/main.rs @@ -46,7 +46,7 @@ enum Color { } impl Color { - const ALL: &[Color] = &[ + const ALL: &'static [Color] = &[ Color::Black, Color::Red, Color::Orange, diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs index b0e2c81b..3b69f5e6 100644 --- a/examples/modal/src/main.rs +++ b/examples/modal/src/main.rs @@ -205,7 +205,8 @@ enum Plan { } impl Plan { - pub const ALL: &[Self] = &[Self::Basic, Self::Pro, Self::Enterprise]; + pub const ALL: &'static [Self] = + &[Self::Basic, Self::Pro, Self::Enterprise]; } impl fmt::Display for Plan { diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs index 20c3dd42..5b089e8a 100644 --- a/examples/toast/src/main.rs +++ b/examples/toast/src/main.rs @@ -210,7 +210,7 @@ mod toast { } impl Status { - pub const ALL: &[Self] = + pub const ALL: &'static [Self] = &[Self::Primary, Self::Secondary, Self::Success, Self::Danger]; } diff --git a/highlighter/src/lib.rs b/highlighter/src/lib.rs index 5630756e..63f21fc0 100644 --- a/highlighter/src/lib.rs +++ b/highlighter/src/lib.rs @@ -168,7 +168,7 @@ pub enum Theme { } impl Theme { - pub const ALL: &[Self] = &[ + pub const ALL: &'static [Self] = &[ Self::SolarizedDark, Self::Base16Mocha, Self::Base16Ocean, |