Skip to content

Commit c32c65c

Browse files
committed
Add clippy to CI
1 parent 00e2baa commit c32c65c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ jobs:
3737
- run: cargo +nightly update -Z minimal-versions
3838
- run: cargo +stable test
3939

40+
clippy:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- run: rustup component add clippy
45+
- run: cargo clippy --all-features --locked -- -D warnings
46+
4047
fmt:
4148
name: Rustfmt
4249
runs-on: ubuntu-latest

src/distribution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl Distribution {
164164
#[cfg(feature = "xz")]
165165
SDistType::XzTar => Self::parse_tar(XzDecoder::new_stream(
166166
BufReader::new(fs_err::File::open(path)?),
167-
XzStream::new_auto_decoder(u64::max_value(), 0).unwrap(),
167+
XzStream::new_auto_decoder(u64::MAX, 0).unwrap(),
168168
)),
169169
}
170170
}

0 commit comments

Comments
 (0)