FFI: Rename ResultTypeInfo::write_to to ffi::write_result_to

It's not intended to be overridden, and this is actually /more/ in
line with the other write_*_to helpers that exist.
This commit is contained in:
Jordan Rose
2021-02-23 17:38:22 -08:00
parent 25b33a5b2a
commit d1c18fbabb
5 changed files with 14 additions and 17 deletions

View File

@@ -138,7 +138,7 @@ pub unsafe extern "C" fn signal_sealed_session_cipher_decrypt(
write_optional_cstr_to(sender_e164, Ok(decrypted.sender_e164))?;
write_cstr_to(sender_uuid, Ok(decrypted.sender_uuid))?;
write_uint32_to(sender_device_id, Ok(decrypted.device_id))?;
write_result_to(sender_device_id, decrypted.device_id)?;
write_bytearray_to(out, out_len, decrypted.message)
})
}