fix(method): change trait method signature
This commit is contained in:
parent
2dc02ce79e
commit
09801147b9
|
@ -130,7 +130,7 @@ impl InfoBarBuilder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Product<InfoBarBuilder, &'static Revealer> for InfoBar {
|
impl Product<InfoBarBuilder, Revealer> for InfoBar {
|
||||||
fn builder() -> InfoBarBuilder {
|
fn builder() -> InfoBarBuilder {
|
||||||
InfoBarBuilder {
|
InfoBarBuilder {
|
||||||
label: Label::builder(),
|
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
|
&INFO_BAR_INSTANCE.instance
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,8 +29,8 @@ impl Product<InputBuilder, Box> for Input {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get(self) -> Box {
|
fn get(&self) -> &Box {
|
||||||
self.component
|
&self.component
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue