Skip to content

Commit

Permalink
Fix cargo fmt command
Browse files Browse the repository at this point in the history
  • Loading branch information
spencewenski committed Mar 29, 2024
1 parent 997e665 commit 7d7f9cf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .cargo-husky/hooks/pre-push
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
#!/usr/bin/env bash

# Checks that don't depend on which features are enabled
echo "### cargo fmt -- --check ###"
cargo fmt --workspace -- --check
echo "### cargo clippy --no-deps -- -D warnings ###"
echo "### fmt --all -- --check ###"
cargo fmt --all -- --check
echo "### clippy --workspace -- -D warnings ###"
cargo clippy --workspace -- -D warnings

# Without default features
echo "### cargo test --no-default-features ###"
echo "### test --no-default-features --workspace ###"
cargo test --no-default-features --workspace
echo "### cargo check --no-default-features ###"
echo "### check --no-default-features --workspace ###"
cargo check --no-default-features --workspace

# With default features
echo "### cargo test ###"
echo "### test --workspace ###"
cargo test --workspace
echo "### cargo check ###"
echo "### check --workspace ###"
cargo check --workspace

# With all features
echo "### cargo test --all-features ###"
echo "### test --all-features --workspace ###"
cargo test --all-features --workspace
echo "### cargo check --all-features ###"
echo "### check --all-features --workspace ###"
cargo check --all-features --workspace
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Clippy
run: cargo clippy --workspace --no-deps -- -D warnings
run: cargo clippy --workspace -- -D warnings

check_formatting:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Formatting
run: cargo fmt --workspace -- --check
run: cargo fmt --all -- --check

0 comments on commit 7d7f9cf

Please sign in to comment.