From 86046f5ad61ee19e3e11577d72aee1de6d996b12 Mon Sep 17 00:00:00 2001 From: nicolas <48695862+merklefruit@users.noreply.github.com> Date: Wed, 9 Oct 2024 18:21:41 +0200 Subject: [PATCH] chore: update actions --- .github/workflows/ci.yml | 32 ++++++++++++-------------------- justfile | 6 ++++-- msg-transport/src/lib.rs | 2 +- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b8bbe9..e558911 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,14 +8,12 @@ jobs: timeout-minutes: 20 steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: nightly - profile: minimal - override: true - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - name: cargo test @@ -28,15 +26,13 @@ jobs: timeout-minutes: 20 steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: nightly - profile: minimal components: rustfmt, clippy - override: true - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - name: cargo fmt @@ -50,14 +46,12 @@ jobs: continue-on-error: true steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: nightly - profile: minimal - override: true - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - name: build @@ -71,14 +65,12 @@ jobs: continue-on-error: true steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: nightly - profile: minimal - override: true - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - name: doclint diff --git a/justfile b/justfile index 5ced516..2e27e87 100644 --- a/justfile +++ b/justfile @@ -1,4 +1,4 @@ -default: check doc fmt +default: check doc fmt clippy check: cargo check --workspace --all-features --all-targets @@ -6,9 +6,11 @@ check: doc: cargo doc --workspace --all-features --no-deps --document-private-items +clippy: + cargo +nightly clippy --all --all-features -- -D warnings fmt: cargo +nightly fmt --all -- --check test: - cargo nextest run --workspace --retries 3 \ No newline at end of file + cargo nextest run --workspace --retries 3 diff --git a/msg-transport/src/lib.rs b/msg-transport/src/lib.rs index 346ccee..8f47e6c 100644 --- a/msg-transport/src/lib.rs +++ b/msg-transport/src/lib.rs @@ -88,7 +88,7 @@ impl<'a, T, A> Acceptor<'a, T, A> { } } -impl<'a, T, A> Future for Acceptor<'a, T, A> +impl Future for Acceptor<'_, T, A> where T: Transport + Unpin, A: Address,