mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-26 15:26:03 +08:00
Fix clippy warning
This commit is contained in:
parent
506ecb91d0
commit
6db7d47c36
@ -373,6 +373,7 @@ impl DatabaseName<'_> {
|
|||||||
Attached(s) => str_to_cstring(s),
|
Attached(s) => str_to_cstring(s),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#[cfg(feature = "hooks")]
|
||||||
pub(crate) fn from_cstr(db_name: &std::ffi::CStr) -> DatabaseName<'_> {
|
pub(crate) fn from_cstr(db_name: &std::ffi::CStr) -> DatabaseName<'_> {
|
||||||
let s = db_name.to_str().expect("illegal database name");
|
let s = db_name.to_str().expect("illegal database name");
|
||||||
match s {
|
match s {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user