Fix tests: add properties to component creation

This commit is contained in:
Denis Kolodin 2018-02-10 18:44:21 +03:00
parent f2029fa92d
commit 5f056c5c68
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ impl Component<Ctx> for Comp {
type Msg = ();
type Properties = ();
fn create(_: &mut Env<Ctx, Self>) -> Self {
fn create(_: Self::Properties, _: &mut Env<Ctx, Self>) -> Self {
Comp
}

View File

@ -12,7 +12,7 @@ impl Component<Ctx> for Comp {
type Msg = ();
type Properties = ();
fn create(_: &mut Env<Ctx, Self>) -> Self {
fn create(_: Self::Properties, _: &mut Env<Ctx, Self>) -> Self {
Comp
}