diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7811f1d..fe6c9f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,11 +23,8 @@ jobs: needs: [release] steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - default: true - - run: cargo build --release -j`nproc` + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: cargo build --release - run: | mv target/release/nomino nomino-linux-64bit gh release upload "v${{ github.ref_name }}" nomino-linux-64bit --clobber @@ -41,11 +38,8 @@ jobs: needs: [release] steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - default: true - - run: cargo build --release -j`sysctl -n hw.physicalcpu` + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: cargo build --release - run: | mv target/release/nomino nomino-macos-64bit gh release upload "v${{ github.ref_name }}" nomino-macos-64bit --clobber @@ -59,10 +53,7 @@ jobs: needs: [release] steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - default: true + - uses: actions-rust-lang/setup-rust-toolchain@v1 - run: cargo build --release - run: | mv target/release/nomino.exe nomino-windows-64bit.exe diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3eef690..f6ec3f9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,40 +11,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 + - uses: actions-rust-lang/setup-rust-toolchain@v1 with: - default: true - toolchain: stable components: rustfmt, clippy - - uses: actions-rs/cargo@v1 - with: - command: test - - uses: actions-rs/cargo@v1 - with: - command: fmt - args: -- --check - - uses: actions-rs/cargo@v1 - with: - command: clippy + - run: cargo test + - run: cargo fmt -- --check + - run: cargo clippy macos: runs-on: macos-latest steps: - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - default: true - toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: test - windows: - runs-on: windows-latest - steps: - - uses: actions/checkout@v4 - - uses: actions-rs/toolchain@v1 - with: - default: true - toolchain: stable - - uses: actions-rs/cargo@v1 - with: - command: test + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - run: cargo test diff --git a/src/input/iterator.rs b/src/input/iterator.rs index 331951b..5486826 100644 --- a/src/input/iterator.rs +++ b/src/input/iterator.rs @@ -9,6 +9,7 @@ use std::vec::IntoIter; use walkdir::IntoIter as WalkIter; use walkdir::WalkDir; +#[allow(clippy::large_enum_variant)] pub enum InputIterator { VectorIterator(IntoIter<(String, String)>), DirectoryIterator {