cargo update, update to zerocopy 0.8

Held back for MSRV:
- base64ct v1.6.0
- half v2.4.1
- home v0.5.9
- litemap v0.7.4
- zerofrom v0.1.5 (and zerofrom-derive)
This commit is contained in:
Jordan Rose
2025-04-07 11:14:54 -07:00
committed by GitHub
parent 23e65e4bbe
commit 3a2c29277e
15 changed files with 803 additions and 492 deletions

View File

@@ -282,7 +282,7 @@ pub unsafe extern "C" fn signal_hex_encode(
return Err(NullPointerError.into());
}
let output = std::slice::from_raw_parts_mut(output, output_len);
let output = zerocopy::AsBytes::as_bytes_mut(output);
let output = zerocopy::IntoBytes::as_mut_bytes(output);
let input = std::slice::from_raw_parts(input, input_len);
hex::encode_to_slice(input, output).expect("checked above");
Ok(())