mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-08 12:32:20 +08:00
Use C-string literals
This commit is contained in:
@@ -40,7 +40,7 @@ use crate::{Connection, Result};
|
||||
|
||||
// http://sqlite.org/bindptr.html
|
||||
|
||||
pub(crate) const ARRAY_TYPE: *const c_char = (b"rarray\0" as *const u8).cast::<c_char>();
|
||||
pub(crate) const ARRAY_TYPE: *const c_char = c"rarray".as_ptr();
|
||||
|
||||
pub(crate) unsafe extern "C" fn free_array(p: *mut c_void) {
|
||||
drop(Rc::from_raw(p as *const Vec<Value>));
|
||||
|
Reference in New Issue
Block a user