diff --git a/src/view/components/info_bar.rs b/src/view/components/info_bar.rs index 28ef0a8..e0048d8 100644 --- a/src/view/components/info_bar.rs +++ b/src/view/components/info_bar.rs @@ -130,7 +130,7 @@ impl InfoBarBuilder { } } -impl Product for InfoBar { +impl Product for InfoBar { fn builder() -> InfoBarBuilder { InfoBarBuilder { label: Label::builder(), @@ -139,7 +139,7 @@ impl Product for InfoBar { } } - fn get(self) -> &'static Revealer { + fn get(&self) -> &'static Revealer { &INFO_BAR_INSTANCE.instance } } diff --git a/src/view/components/input.rs b/src/view/components/input.rs index 76a115a..fa1fc67 100644 --- a/src/view/components/input.rs +++ b/src/view/components/input.rs @@ -29,8 +29,8 @@ impl Product for Input { } } - fn get(self) -> Box { - self.component + fn get(&self) -> &Box { + &self.component } }