Skip to content

Commit c141cf8

Browse files
build(deps): bump the patch group across 1 directory with 2 updates (#404)
1 parent c1b5a81 commit c141cf8

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

Cargo.lock

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/dpapi/src/crypto/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ pub fn compute_kek(
375375
.modpow(&BigUint::from_bytes_be(private_key), &dh_pub_key.field_order);
376376
let mut shared_secret = shared_secret.to_bytes_be();
377377

378-
while shared_secret.len() < dh_pub_key.key_length.try_into()? {
378+
while shared_secret.len() < usize::try_from(dh_pub_key.key_length)? {
379379
shared_secret.insert(0, 0);
380380
}
381381

ffi/src/winscard/scard.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ pub unsafe extern "system" fn SCardTransmit(
383383
if out_apdu_len
384384
> try_execute!(
385385
// SAFETY: The `pcb_recv_length` parameter cannot be null (checked above). So, it's safe to deref.
386-
unsafe { *pcb_recv_length }.try_into(),
386+
usize::try_from(unsafe { *pcb_recv_length }),
387387
ErrorKind::InsufficientBuffer
388388
)
389389
|| pb_recv_buffer.is_null()

ffi/src/winscard/scard_handle.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ pub unsafe fn copy_io_request_to_scard_io_request(
537537

538538
let pci_info_len = io_request.pci_info.len();
539539
// SAFETY: it's safe to deref because we've checked for null value above.
540-
let scard_pci_info_len = unsafe { (*scard_io_request).cb_pci_length }.try_into()?;
540+
let scard_pci_info_len = usize::try_from(unsafe { (*scard_io_request).cb_pci_length })?;
541541

542542
if pci_info_len > scard_pci_info_len {
543543
return Err(Error::new(

0 commit comments

Comments
 (0)