From 8b1b79bc9323332ec4f25537fb134befed25d608 Mon Sep 17 00:00:00 2001 From: Lucas Forato Date: Thu, 7 Aug 2025 10:49:36 -0300 Subject: [PATCH] fix: broken file after merge --- core/lib.rs | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/core/lib.rs b/core/lib.rs index eda4e45db..db9c5bcf9 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -62,7 +62,6 @@ pub use io::{ }; use parking_lot::RwLock; use schema::Schema; -use std::ffi::CStr; use std::{ borrow::Cow, cell::{Cell, RefCell, UnsafeCell}, @@ -1839,20 +1838,24 @@ impl Connection { pub fn get_pager(&self) -> Rc { self.pager.borrow().clone() + } + pub fn get_used_vtab_mods(&self) -> std::collections::HashSet { - let mut mods = std::collections::HashSet::new(); + let mut mods: std::collections::HashSet = std::collections::HashSet::new(); let schema = self._db.schema.lock().unwrap(); - schema.tables.values() - .filter_map(|table| { - if let Table::Virtual(vtab) = table.as_ref() { - vtab.module_name().map(|name| name.to_string()) - } else { - None - } - }) - .collect() + schema + .tables + .values() + .filter_map(|table| { + if let Table::Virtual(vtab) = table.as_ref() { + vtab.module_name().map(|name| name.to_string()) + } else { + None + } + }) + .collect() } pub fn get_query_only(&self) -> bool {