Skip to content

Commit 76b5926

Browse files
ghedokornelski
authored andcommitted
fix manual_c_str_literals clippy warning
1 parent af9df37 commit 76b5926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boring/src/ssl/bio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ struct BIO_METHOD(*mut ffi::BIO_METHOD);
219219
impl BIO_METHOD {
220220
fn new<S: Read + Write>() -> BIO_METHOD {
221221
unsafe {
222-
let ptr = ffi::BIO_meth_new(ffi::BIO_TYPE_NONE, b"rust\0".as_ptr().cast());
222+
let ptr = ffi::BIO_meth_new(ffi::BIO_TYPE_NONE, c"rust".as_ptr().cast());
223223
assert!(!ptr.is_null());
224224
let ret = BIO_METHOD(ptr);
225225
assert!(ffi::BIO_meth_set_write(ptr, Some(bwrite::<S>)) != 0);

0 commit comments

Comments
 (0)