fix(function): change function signature

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

View File

@ -25,8 +25,8 @@ impl Product<PagesBuilder, Box> for Pages {
}
}
fn get(self) -> Box {
self.wrapper
fn get(&self) -> &Box {
&self.wrapper
}
}

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));
}
}