diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 169e2e5f..8837d8fc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,7 +19,7 @@ jobs: uses: actions/checkout@v4 - name: Read nightly version id: read_toolchain - run: echo "nightly_version=$(cat .github/nightly-version)" >> $GITHUB_OUTPUT + run: echo "nightly_version=$(cat nightly-version)" >> $GITHUB_OUTPUT - name: Prepare tests id: get_matrix run: contrib/get_matrix.sh diff --git a/githooks/pre-commit b/githooks/pre-commit index 90abae3c..5d0b9fe6 100755 --- a/githooks/pre-commit +++ b/githooks/pre-commit @@ -46,4 +46,4 @@ fi git diff-index --check --cached $against -- || exit 1 # Check that code lints cleanly. -cargo +nightly clippy --all-features -- -D warnings || exit 1 +cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings || exit 1 diff --git a/justfile b/justfile index ea776e81..b73a6820 100644 --- a/justfile +++ b/justfile @@ -11,11 +11,11 @@ check: # Lint everything. lint: - cargo +$(cat .github/nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings + cargo +$(cat ./nightly-version) clippy --workspace --all-targets --all-features -- --deny warnings # Check the formatting format: - cargo +$(cat .github/nightly-version) fmt --all --check + cargo +$(cat ./nightly-version) fmt --all --check # Quick and dirty CI useful for pre-push checks. sane: lint diff --git a/.github/nightly-version b/nightly-version similarity index 100% rename from .github/nightly-version rename to nightly-version