Skip to content

Commit

Permalink
chore: fix rust fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
alon-dotan-starkware committed Jul 9, 2024
1 parent a79cb70 commit 41d9448
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: Noelware/setup-protoc@1.1.0
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
Expand All @@ -81,6 +82,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Noelware/setup-protoc@1.1.0
- uses: Swatinem/rust-cache@v2
with:
prefix-key: "v0-rust-ubuntu-20.04"
Expand Down
2 changes: 1 addition & 1 deletion scripts/clippy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

cargo clippy "$@" --all-targets --all-features
cargo clippy "$@" --all-targets --all-features
File renamed without changes.
6 changes: 5 additions & 1 deletion scripts/rust_fmt.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/bash

cargo +nightly-2024-01-12 fmt --all -- "$@"
# Install toolchain if missing (local run).
TOOLCHAIN="nightly-2024-04-29"
rustup toolchain list | grep -q ${TOOLCHAIN} || rustup toolchain install ${TOOLCHAIN}

cargo +${TOOLCHAIN} fmt --all -- "$@"

0 comments on commit 41d9448

Please sign in to comment.