From 6d7277d831a74c1356927352caba015d0c409388 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 8 Nov 2024 05:03:02 +0200 Subject: [PATCH] remove extra referencers --- src/app.rs | 4 ++-- src/app/browser.rs | 8 ++++---- src/app/browser/widget.rs | 2 +- src/app/browser/window.rs | 4 ++-- src/app/browser/window/tab.rs | 4 ++-- src/app/browser/window/tab/item.rs | 6 +++--- src/app/browser/window/tab/item/page/meta.rs | 2 +- src/app/browser/window/tab/item/page/navigation.rs | 2 +- .../window/tab/item/page/navigation/request/widget.rs | 2 +- src/app/browser/window/tab/item/widget.rs | 2 +- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/app.rs b/src/app.rs index 7aadd721..8e3e5ae8 100644 --- a/src/app.rs +++ b/src/app.rs @@ -276,12 +276,12 @@ impl App { // Tools fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); } // Delegate migration to childs - browser::migrate(&tx)?; + browser::migrate(tx)?; // Success Ok(()) diff --git a/src/app/browser.rs b/src/app/browser.rs index 783c1d62..ee97d326 100644 --- a/src/app/browser.rs +++ b/src/app/browser.rs @@ -259,15 +259,15 @@ impl Browser { // Tools pub fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); } // Delegate migration to childs /* @TODO - header::migrate(&tx)?; */ - window::migrate(&tx)?; - widget::migrate(&tx)?; + header::migrate(tx)?; */ + window::migrate(tx)?; + widget::migrate(tx)?; // Success Ok(()) diff --git a/src/app/browser/widget.rs b/src/app/browser/widget.rs index c0b41b59..d8cfea9e 100644 --- a/src/app/browser/widget.rs +++ b/src/app/browser/widget.rs @@ -105,7 +105,7 @@ impl Widget { // Tools pub fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); } diff --git a/src/app/browser/window.rs b/src/app/browser/window.rs index 75aeb4ae..e46e990a 100644 --- a/src/app/browser/window.rs +++ b/src/app/browser/window.rs @@ -180,12 +180,12 @@ impl Window { // Tools pub fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); } // Delegate migration to childs - tab::migrate(&tx)?; + tab::migrate(tx)?; // Success Ok(()) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index 1c3521c2..f1b5bd59 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -401,12 +401,12 @@ impl Tab { // Tools pub fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); } // Delegate migration to childs - item::migrate(&tx)?; + item::migrate(tx)?; // Success Ok(()) diff --git a/src/app/browser/window/tab/item.rs b/src/app/browser/window/tab/item.rs index 2ace1020..b966a263 100644 --- a/src/app/browser/window/tab/item.rs +++ b/src/app/browser/window/tab/item.rs @@ -224,13 +224,13 @@ impl Item { // Tools pub fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); } // Delegate migration to childs - page::migrate(&tx)?; - widget::migrate(&tx)?; + page::migrate(tx)?; + widget::migrate(tx)?; // Success Ok(()) diff --git a/src/app/browser/window/tab/item/page/meta.rs b/src/app/browser/window/tab/item/page/meta.rs index 8f3c7e94..4b5d89f7 100644 --- a/src/app/browser/window/tab/item/page/meta.rs +++ b/src/app/browser/window/tab/item/page/meta.rs @@ -185,7 +185,7 @@ impl Meta { // Tools pub fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); } diff --git a/src/app/browser/window/tab/item/page/navigation.rs b/src/app/browser/window/tab/item/page/navigation.rs index f5408418..1b11471e 100644 --- a/src/app/browser/window/tab/item/page/navigation.rs +++ b/src/app/browser/window/tab/item/page/navigation.rs @@ -174,7 +174,7 @@ impl Navigation { // Tools pub fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); } diff --git a/src/app/browser/window/tab/item/page/navigation/request/widget.rs b/src/app/browser/window/tab/item/page/navigation/request/widget.rs index ba9bfcdb..37e2dd3e 100644 --- a/src/app/browser/window/tab/item/page/navigation/request/widget.rs +++ b/src/app/browser/window/tab/item/page/navigation/request/widget.rs @@ -219,7 +219,7 @@ impl Widget { // Tools pub fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); } diff --git a/src/app/browser/window/tab/item/widget.rs b/src/app/browser/window/tab/item/widget.rs index 1168dfd5..360e41c5 100644 --- a/src/app/browser/window/tab/item/widget.rs +++ b/src/app/browser/window/tab/item/widget.rs @@ -138,7 +138,7 @@ impl Widget { // Tools pub fn migrate(tx: &Transaction) -> Result<(), String> { // Migrate self components - if let Err(e) = Database::init(&tx) { + if let Err(e) = Database::init(tx) { return Err(e.to_string()); }