fix(function): change function signature
This commit is contained in:
parent
1aad9bafca
commit
631db86420
|
@ -25,8 +25,8 @@ impl Product<PagesBuilder, Box> for Pages {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get(self) -> Box {
|
fn get(&self) -> &Box {
|
||||||
self.wrapper
|
&self.wrapper
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,8 +21,8 @@ impl Product<TabsBuilder, Notebook> for Tabs {
|
||||||
TabsBuilder { tabs: Vec::new() }
|
TabsBuilder { tabs: Vec::new() }
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get(self) -> Notebook {
|
fn get(&self) -> &Notebook {
|
||||||
self.tabs_wrapper
|
&self.tabs_wrapper
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,4 +58,3 @@ impl TabsBuilder {
|
||||||
self.tabs.push((tab_label, item.1));
|
self.tabs.push((tab_label, item.1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue