From 09801147b9296b984f618e27379a47beba606b5d Mon Sep 17 00:00:00 2001 From: doryan Date: Sat, 10 Aug 2024 01:05:36 +0400 Subject: [PATCH] fix(method): change trait method signature --- src/view/components/info_bar.rs | 4 ++-- src/view/components/input.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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 } }