Skip to content

Commit

Permalink
fix manual_c_str_literals clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ghedo authored and kornelski committed Jan 22, 2025
1 parent af9df37 commit 76b5926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boring/src/ssl/bio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ struct BIO_METHOD(*mut ffi::BIO_METHOD);
impl BIO_METHOD {
fn new<S: Read + Write>() -> BIO_METHOD {
unsafe {
let ptr = ffi::BIO_meth_new(ffi::BIO_TYPE_NONE, b"rust\0".as_ptr().cast());
let ptr = ffi::BIO_meth_new(ffi::BIO_TYPE_NONE, c"rust".as_ptr().cast());
assert!(!ptr.is_null());
let ret = BIO_METHOD(ptr);
assert!(ffi::BIO_meth_set_write(ptr, Some(bwrite::<S>)) != 0);
Expand Down

0 comments on commit 76b5926

Please sign in to comment.