Skip to content
Snippets Groups Projects
Verified Commit 97925b86 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

chore: replace debug_Assert with assert

parent 5d04234f
No related branches found
No related tags found
No related merge requests found
Pipeline #4403 passed
......@@ -119,8 +119,8 @@ pub fn save_bmp(path: &str, pixels: &[u8], width: u32, height: u32) -> Result<()
/// This function is optimized for performance and uses pointer-based
/// operations to copy the data as fast as possible.
pub fn copy_fast(src: &[u8], dst: &mut [u8], count: usize) {
debug_assert!(src.len() >= count);
debug_assert!(dst.len() >= count);
assert!(src.len() >= count);
assert!(dst.len() >= count);
unsafe {
let src_ptr = src.as_ptr();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment