Skip to content

Commit

Permalink
allow unexpected cfgs clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-r-earp committed Jul 28, 2024
1 parent 36adb07 commit cf1b604
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ jobs:
env:
CARGO_ALIAS_CLIPPYALL: clippy --workspace
run: |
cargo hack --feature-powerset --skip default,learn,dataset,iris,mnist clippyall --all-targets -v -- -D warnings
cargo clippy --no-default-features --features iris,mnist --all-targets -v -- -D warnings
cargo hack --feature-powerset --skip default,learn,dataset,iris,mnist clippyall --all-targets -v -- -D warnings -A unexpected_cfgs
cargo clippy --no-default-features --features iris,mnist --all-targets -v -- -D warnings -A unexpected_cfgs
- name: rustdoc
run: |
cargo rustdoc -p autograph_derive -- -D warnings
Expand Down
2 changes: 1 addition & 1 deletion src/tensor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ fn size_of_shape_checked<D: Dimension>(dim: &D) -> Result<usize, ShapeError> {
.filter(|&&d| d != 0)
.try_fold(1usize, |acc, &d| acc.checked_mul(d))
.ok_or_else(|| ShapeError::from_kind(ErrorKind::Overflow))?;
if size_nonzero > ::std::isize::MAX as usize {
if size_nonzero > isize::MAX as usize {
Err(ShapeError::from_kind(ErrorKind::Overflow))
} else {
Ok(dim.size())
Expand Down

0 comments on commit cf1b604

Please sign in to comment.