Verified Commit 1abd7fff authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Missing unsafe

parent 69d34a82
Pipeline #2229 passed with stage
in 1 minute and 8 seconds
......@@ -100,7 +100,9 @@ impl<'a> ImageRoi<'a> {
pub fn blit(&'a mut self, other: &ImageRoi) {
for (self_row, other_row) in self.rows_mut().zip(other.rows()) {
let len = cmp::min(self_row.len(), other_row.len());
ptr::copy(other_row.as_ptr(), self_row.as_mut_ptr(), len);
unsafe {
ptr::copy(other_row.as_ptr(), self_row.as_mut_ptr(), len);
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment