Skip to content

Commit

Permalink
Fixed CI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin Hansen <marvin.hansen@gmail.com>
  • Loading branch information
marvin-hansen committed Nov 21, 2024
1 parent 7636b40 commit 4bf0d05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --feature unsafe --verbose
run: cargo build --features unsafe --verbose

- name: Run Doc tests
run: cargo test --feature unsafe --doc --verbose
run: cargo test --features unsafe --doc --verbose

- name: Run tests
run: cargo test --feature unsafe --verbose
run: cargo test --features unsafe --verbose
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ where
pub fn new(size: usize, multiple: usize) -> Self {
let capacity = size * multiple;
let vec = vec![T::default(); capacity];
assert!(!vec.as_ptr().is_null(), "Vector allocation failed");

Check warning

Code scanning / clippy

returned pointer of as_ptr call is never null, so checking it for null will always return false Warning

returned pointer of as\_ptr call is never null, so checking it for null will always return false
Self {
vec,
size,
Expand Down

0 comments on commit 4bf0d05

Please sign in to comment.