Skip to content

Commit

Permalink
rust: force clippy to pass in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
james-rms committed Oct 4, 2023
1 parent 36cea41 commit 013fca8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ jobs:
default: true
components: "rustfmt, clippy"
- run: cargo fmt --all -- --check
- run: cargo clippy -- --no-deps
- run: cargo clippy -- --no-deps -Dwarnings
- run: cargo build
- run: cargo test
- name: "publish to crates.io"
Expand Down
1 change: 1 addition & 0 deletions rust/src/records.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ fn parse_vec<T: BinRead<Args<'static> = ()>>() -> BinResult<Vec<T>> {
Ok(parsed)
}

#[allow(clippy::ptr_arg)] // needed to match binrw macros
#[binrw::writer(writer, endian)]
fn write_vec<T: BinWrite<Args<'static> = ()>>(v: &Vec<T>) -> BinResult<()> {
use std::io::SeekFrom;
Expand Down
2 changes: 1 addition & 1 deletion rust/src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ impl WriteOptions {
/// begin a new chunk.
pub fn chunk_size(self, chunk_size: Option<u64>) -> Self {
Self {
chunk_size: chunk_size,
chunk_size,
..self
}
}
Expand Down

0 comments on commit 013fca8

Please sign in to comment.