Skip to content

Commit

Permalink
Changed: Don't check for Null when Not Needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Nov 24, 2023
1 parent 596e88e commit 6bd39f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src-rust/src/buffers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ mod tests {
assert!(result.is_ok());

let item = result.unwrap();
assert!(!item.base_address.as_ptr().is_null());
assert!(item.size >= settings.size as usize);
}

Expand All @@ -232,7 +231,6 @@ mod tests {
assert!(result.is_ok());

let item = result.unwrap();
assert!(!item.base_address.as_ptr().is_null());
assert!(item.size >= settings.size as usize);
}

Expand Down
2 changes: 0 additions & 2 deletions src-rust/src/c/buffers_c_buffers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ mod tests {
let result = buffers_allocate_private_memory(&mut settings);
assert!(result.is_ok);

assert!(!result.ok.base_address.as_ptr().is_null());
assert!(result.ok.size >= settings.size as usize);
free_allocation_result(result);
}
Expand All @@ -376,7 +375,6 @@ mod tests {
let result = buffers_allocate_private_memory(&mut settings);
assert!(result.is_ok);

assert!(!result.ok.base_address.as_ptr().is_null());
assert!(result.ok.size >= settings.size as usize);
free_allocation_result(result);
}
Expand Down

0 comments on commit 6bd39f8

Please sign in to comment.