Skip to content

Commit 769424a

Browse files
committed
Fix clippy ci
1 parent f380770 commit 769424a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
linting:
4646
runs-on: ubuntu-latest
4747
env:
48-
TOOLCHAIN: stable
48+
TOOLCHAIN: 1.63.0
4949
steps:
5050
- name: Checkout source code
5151
uses: actions/checkout@v4

ci/check-lint.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/sh
22
set -e
33
set -x
4+
5+
RUSTC_MINOR_VERSION=$(rustc --version | awk '{ split($2,a,"."); print a[2] }')
6+
7+
# Starting with version 1.39.0, the `tokio` crate has an MSRV of rustc 1.70.0
8+
[ "$RUSTC_MINOR_VERSION" -lt 70 ] && cargo update -p tokio --precise "1.38.1" --verbose
9+
[ "$RUSTC_MINOR_VERSION" -lt 70 ] && cargo update -p tokio-util --precise "0.7.10" --verbose
10+
411
RUSTFLAGS='-D warnings' cargo clippy -- \
512
`# We use this for sat groupings` \
613
-A clippy::inconsistent-digit-grouping \

0 commit comments

Comments
 (0)