Remove identity casts

This commit is contained in:
Nilstrieb 2023-04-09 23:07:45 +02:00
parent 81c320ea77
commit 4b4948c2e3
8 changed files with 11 additions and 11 deletions

View file

@ -30,7 +30,7 @@ pub unsafe extern "C" fn LLVMRustStringWriteImpl(
ptr: *const c_char,
size: size_t,
) {
let slice = slice::from_raw_parts(ptr as *const u8, size as usize);
let slice = slice::from_raw_parts(ptr as *const u8, size);
sr.bytes.borrow_mut().extend_from_slice(slice);
}