Merge pull request #2135 from iced-rs/ci/deny-warnings
Deny warnings in `test` workflow
This commit is contained in:
commit
817f728687
5 changed files with 7 additions and 4 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -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]
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ enum Color {
|
|||
}
|
||||
|
||||
impl Color {
|
||||
const ALL: &[Color] = &[
|
||||
const ALL: &'static [Color] = &[
|
||||
Color::Black,
|
||||
Color::Red,
|
||||
Color::Orange,
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ pub enum Theme {
|
|||
}
|
||||
|
||||
impl Theme {
|
||||
pub const ALL: &[Self] = &[
|
||||
pub const ALL: &'static [Self] = &[
|
||||
Self::SolarizedDark,
|
||||
Self::Base16Mocha,
|
||||
Self::Base16Ocean,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue