Skip to content

Commit

Permalink
yewstack#1271 fix failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
kellpossible committed May 30, 2020
1 parent ab331e5 commit 43713d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yewtil/src/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub trait LinkFuture {
impl<COMP: Component> LinkFuture for ComponentLink<COMP> {
type Message = COMP::Message;

fn callback_future<FN, FU, IN, M>(&self, function: F) -> yew::Callback<IN>
fn callback_future<FN, FU, IN, M>(&self, function: FN) -> yew::Callback<IN>
where
M: Into<Self::Message>,
FU: Future<Output = M> + 'static,
Expand Down Expand Up @@ -88,7 +88,7 @@ impl<COMP: Component> LinkFuture for ComponentLink<COMP> {
impl<AGN: Agent> LinkFuture for AgentLink<AGN> {
type Message = AGN::Message;

fn callback_future<FN, FU, IN, M>(&self, function: F) -> yew::Callback<IN>
fn callback_future<FN, FU, IN, M>(&self, function: FN) -> yew::Callback<IN>
where
M: Into<Self::Message>,
FU: Future<Output = M> + 'static,
Expand Down

0 comments on commit 43713d7

Please sign in to comment.