fix(method): change trait method signature

This commit is contained in:
2024-08-10 01:05:36 +04:00
parent 2dc02ce79e
commit 09801147b9
2 changed files with 4 additions and 4 deletions

View File

@@ -130,7 +130,7 @@ impl InfoBarBuilder {
}
}
impl Product<InfoBarBuilder, &'static Revealer> for InfoBar {
impl Product<InfoBarBuilder, Revealer> for InfoBar {
fn builder() -> InfoBarBuilder {
InfoBarBuilder {
label: Label::builder(),
@@ -139,7 +139,7 @@ impl Product<InfoBarBuilder, &'static Revealer> for InfoBar {
}
}
fn get(self) -> &'static Revealer {
fn get(&self) -> &'static Revealer {
&INFO_BAR_INSTANCE.instance
}
}