diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a3afec529..9f339779a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,7 +4,6 @@ on: push: branches: [ master ] pull_request: - branches: [ master ] env: CARGO_TERM_COLOR: always @@ -17,7 +16,7 @@ jobs: - name: Rustfmt run: cargo fmt --all -- --check - name: Clippy - run: cargo clippy --all + run: cargo clippy --workspace --all-targets -- -D clippy::all -D clippy::nursery build: runs-on: ubuntu-latest steps: diff --git a/core/src/memory.rs b/core/src/memory.rs index 7d425b132..5395dc412 100644 --- a/core/src/memory.rs +++ b/core/src/memory.rs @@ -209,7 +209,7 @@ mod tests { continue; } let next_multiple = x + 32 - (x % 32); - assert_eq!(Some(next_multiple), next_multiple_of_32(x.into())); + assert_eq!(Some(next_multiple), next_multiple_of_32(x)); } // next_multiple_of_32 returns None when the next multiple of 32 is too big