From 97bc98fd0b7b58a16d13188599d5fd2bc774647d Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 8 Oct 2024 19:42:51 +0300 Subject: [PATCH] rename constructors --- src/app/browser/window/tab.rs | 2 +- src/app/browser/window/tab/item.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/browser/window/tab.rs b/src/app/browser/window/tab.rs index a38257ce..f525a12c 100644 --- a/src/app/browser/window/tab.rs +++ b/src/app/browser/window/tab.rs @@ -91,7 +91,7 @@ impl Tab { is_initially_current: bool, ) -> Arc { // Init new tab item - let item = Item::new( + let item = Item::new_arc( page_navigation_request_text.clone(), is_initially_current, // Actions diff --git a/src/app/browser/window/tab/item.rs b/src/app/browser/window/tab/item.rs index b04cdb45..8500ea83 100644 --- a/src/app/browser/window/tab/item.rs +++ b/src/app/browser/window/tab/item.rs @@ -29,7 +29,7 @@ pub struct Item { impl Item { // Construct - pub fn new( + pub fn new_arc( page_navigation_request_text: Option, is_initially_current: bool, // Actions @@ -142,7 +142,7 @@ impl Item { Ok(records) => { for record in records { // Construct new item object - let item = Item::new( + let item = Item::new_arc( None, record.is_initially_current, // Actions