always implement traits for C type

This commit is contained in:
Dustin J. Mitchell
2022-02-06 23:05:33 +00:00
parent 1e585ba0d9
commit e11506ee6a
8 changed files with 60 additions and 59 deletions

View File

@@ -255,7 +255,7 @@ pub extern "C" fn tc_string_content_with_len(
// - len_out is not NULL (promised by caller)
// - len_out points to valid memory (promised by caller)
// - len_out is properly aligned (C convention)
unsafe { bytes.len().to_arg_out(len_out) };
unsafe { usize::to_arg_out(bytes.len(), len_out) };
bytes.as_ptr() as *const libc::c_char
}