Skip to content

Commit

Permalink
Update GitHub actions (#124)
Browse files Browse the repository at this point in the history
Also get rid of some warnings.
  • Loading branch information
illicitonion authored Aug 13, 2023
1 parent 2899217 commit 3d96bb2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Fetch toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/minimal-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Fetch toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: nightly
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/msrv-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Fetch toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: 1.56.0
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ jobs:
toolchain: [stable, beta, nightly]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Fetch toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
target: thumbv6m-none-eabi
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ members = ["metadata_checks", "num_enum", "num_enum_derive", "renamed_num_enum",
# Exclude num_enum_derive because its useful doc comments import num_enum, which the crate doesn't do (because it would
# cause a circular dependency), so the doc tests don't actually compile.
default-members = ["num_enum", "renamed_num_enum", "serde_example", "stress_tests"]
resolver = "2"
4 changes: 2 additions & 2 deletions num_enum_derive/src/parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ impl EnumInfo {
}

fn parse_attrs<Attrs: Iterator<Item = Attribute>>(
mut attrs: Attrs,
attrs: Attrs,
) -> Result<(Ident, Option<ErrorType>)> {
let mut maybe_repr = None;
let mut maybe_error_type = None;
while let Some(attr) = attrs.next() {
for attr in attrs {
if let Meta::List(meta_list) = &attr.meta {
if let Some(ident) = meta_list.path.get_ident() {
if ident == "repr" {
Expand Down

0 comments on commit 3d96bb2

Please sign in to comment.