use borrow

This commit is contained in:
yggverse 2024-10-07 03:12:42 +03:00
parent 82d8dff95d
commit 3bc74f17af

View File

@ -272,7 +272,7 @@ impl Tab {
pub fn save(&self, tx: &Transaction, app_browser_window_id: &i64) { pub fn save(&self, tx: &Transaction, app_browser_window_id: &i64) {
let mut page_number = 0; let mut page_number = 0;
for (_, _) in self.index.take().iter() { for (_, _) in self.index.borrow().iter() {
match self.database.add( match self.database.add(
tx, tx,
app_browser_window_id, app_browser_window_id,