fix(function): change function signature

This commit is contained in:
doryan committed 2024-08-09 18:56:25 +04:00
1 parent 1aad9bafca
commit 631db86420
2 files changed
+4 -5

No files matched your search

+2 -2
View File
@@ -25,8 +25,8 @@ impl Product<PagesBuilder, Box> for Pages {
}
}
fn get(self) -> Box {
self.wrapper
fn get(&self) -> &Box {
&self.wrapper
}
}
+2 -3
View File
@@ -21,8 +21,8 @@ impl Product<TabsBuilder, Notebook> for Tabs {
TabsBuilder { tabs: Vec::new() }
}
fn get(self) -> Notebook {
self.tabs_wrapper
fn get(&self) -> &Notebook {
&self.tabs_wrapper
}
}
@@ -58,4 +58,3 @@ impl TabsBuilder {
self.tabs.push((tab_label, item.1));
}
}