Skip to content

Commit

Permalink
Few more clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Nov 14, 2023
1 parent 54d5c71 commit 338154b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl BIMICertificate {
chain: chain_stack,
not_before,
not_after,
key_usages: key_usages.unwrap_or(vec![]),
key_usages: key_usages.unwrap_or_default(),
};

Ok(identity)
Expand Down
2 changes: 1 addition & 1 deletion src/x509_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub fn x509_bimi_get_ext(cert: &X509) -> Option<Vec<u8>> {
}

let len = openssl_ffi::ASN1_STRING_length(obj_data as *mut _);
let slice = slice::from_raw_parts(ptr as *const u8, len as usize);
let slice = slice::from_raw_parts(ptr, len as usize);

Some(slice.to_vec())
}
Expand Down

0 comments on commit 338154b

Please sign in to comment.