Fix clippy warning

This commit is contained in:
gwenn 2024-11-10 12:01:06 +01:00
parent 506ecb91d0
commit 6db7d47c36

View File

@ -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 {