Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanceras committed Mar 4, 2024
1 parent 466553e commit b67245c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions crates/sauron-core/src/vdom/map_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{

impl<MSG> Node<MSG>
{
pub(crate) fn map_msg<F, MSG2>(self, cb: F) -> Node<MSG2>
pub fn map_msg<F, MSG2>(self, cb: F) -> Node<MSG2>
where
F: Fn(MSG) -> MSG2 + Clone + 'static,
MSG2: 'static,
Expand Down Expand Up @@ -46,7 +46,7 @@ impl<MSG> Node<MSG>

impl<MSG> Element<MSG>
{
pub(crate) fn map_msg<F, MSG2>(self, cb: F) -> Element<MSG2>
pub fn map_msg<F, MSG2>(self, cb: F) -> Element<MSG2>
where
F: Fn(MSG) -> MSG2 + Clone + 'static,
MSG2: 'static,
Expand All @@ -72,7 +72,7 @@ impl<MSG> Element<MSG>

impl<MSG> Attribute<MSG>
{
pub(crate) fn map_msg<F, MSG2>(self, cb: F) -> Attribute<MSG2>
pub fn map_msg<F, MSG2>(self, cb: F) -> Attribute<MSG2>
where
F: Fn(MSG) -> MSG2 + Clone + 'static,
MSG2: 'static,
Expand Down
2 changes: 1 addition & 1 deletion examples/data-viewer/src/views/data_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use sauron::{
units::*,
*,
},
Component, Effects, Node, NodeMapMsg,
Component, Effects, Node,
};
use std::{
cell::RefCell,
Expand Down
2 changes: 1 addition & 1 deletion examples/data-viewer/src/views/page_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use sauron::{
units::*,
*,
},
Component, Effects, Node, NodeMapMsg,
Component, Effects, Node,
};

#[derive(Debug, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion examples/data-viewer/src/views/resize_wrapper.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::views::{data_view, DataView};
use sauron::{
html::{attributes::*, events::*, *},
jss, Application, Cmd, Component, Node, NodeMapMsg,
jss, Application, Cmd, Component, Node,
};

#[derive(Debug, PartialEq)]
Expand Down
2 changes: 1 addition & 1 deletion examples/data-viewer/src/views/row_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::views::{field_view, FieldView};
use restq::{ColumnDef, DataValue};
use sauron::{
html::{attributes::*, events::*, units::*, *},
Component, Effects, Node, NodeMapMsg,
Component, Effects, Node,
};
use std::{cell::RefCell, rc::Rc};

Expand Down

0 comments on commit b67245c

Please sign in to comment.