mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-25 23:06:04 +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),
|
||||
}
|
||||
}
|
||||
#[cfg(feature = "hooks")]
|
||||
pub(crate) fn from_cstr(db_name: &std::ffi::CStr) -> DatabaseName<'_> {
|
||||
let s = db_name.to_str().expect("illegal database name");
|
||||
match s {
|
||||
|
Loading…
x
Reference in New Issue
Block a user