core: Make clippy happy

...I actually have no idea why Clippy complains now, but not in main.
This commit is contained in:
Pekka Enberg 2025-06-30 09:59:30 +03:00
parent c9945950e8
commit c3250b64a6

View file

@ -670,6 +670,7 @@ impl OpenMode {
))),
}
}
#[allow(dead_code)]
pub fn get_flags(&self) -> OpenFlags {
match self {
OpenMode::ReadWriteCreate => OpenFlags::Create,
@ -705,6 +706,7 @@ fn normalize_windows_path(path: &str) -> String {
}
/// Parses a SQLite URI, handling Windows and Unix paths separately.
#[allow(dead_code)]
pub fn parse_sqlite_uri(uri: &str) -> Result<OpenOptions> {
if !uri.starts_with("file:") {
return Ok(OpenOptions {