Skip to content

Commit

Permalink
chore: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Oct 9, 2024
1 parent 2626fee commit 86046f5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 4 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
default: check doc fmt
default: check doc fmt clippy

check:
cargo check --workspace --all-features --all-targets

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
cargo nextest run --workspace --retries 3
2 changes: 1 addition & 1 deletion msg-transport/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl<'a, T, A> Acceptor<'a, T, A> {
}
}

impl<'a, T, A> Future for Acceptor<'a, T, A>
impl<T, A> Future for Acceptor<'_, T, A>
where
T: Transport<A> + Unpin,
A: Address,
Expand Down

0 comments on commit 86046f5

Please sign in to comment.