From 3bc74f17af88716ee74a4873f0c5ac01a7bd6ad3 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 7 Oct 2024 03:12:42 +0300 Subject: [PATCH] use borrow --- src/app/browser/window/tab.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index 823301ce..7604cfcd 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -272,7 +272,7 @@ impl Tab { pub fn save(&self, tx: &Transaction, app_browser_window_id: &i64) { let mut page_number = 0; - for (_, _) in self.index.take().iter() { + for (_, _) in self.index.borrow().iter() { match self.database.add( tx, app_browser_window_id,