Skip to content

Commit 14c8247

Browse files
committed
Readability improvement
1 parent 870e290 commit 14c8247

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openssl/src/pkey_ctx.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ impl<T> PkeyCtxRef<T> {
743743
#[cfg(ossl320)]
744744
#[corresponds(EVP_PKEY_CTX_set_params)]
745745
pub fn set_nonce_type(&mut self, nonce_type: NonceType) -> Result<(), ErrorStack> {
746-
let nonce_field_name = CStr::from_bytes_with_nul("nonce-type\0".as_bytes()).unwrap();
746+
let nonce_field_name = CStr::from_bytes_with_nul(b"nonce-type\0").unwrap();
747747
let mut nonce_type = nonce_type.0;
748748
unsafe {
749749
let param_nonce =
@@ -765,7 +765,7 @@ impl<T> PkeyCtxRef<T> {
765765
#[cfg(ossl320)]
766766
#[corresponds(EVP_PKEY_CTX_get_params)]
767767
pub fn nonce_type(&mut self) -> Result<NonceType, ErrorStack> {
768-
let nonce_field_name = CStr::from_bytes_with_nul("nonce-type\0".as_bytes()).unwrap();
768+
let nonce_field_name = CStr::from_bytes_with_nul(b"nonce-type\0").unwrap();
769769
let mut nonce_type: c_uint = 0;
770770
unsafe {
771771
let param_nonce =

0 commit comments

Comments
 (0)