Remove identity casts
This commit is contained in:
parent
81c320ea77
commit
4b4948c2e3
8 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue