Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html!: fix explicit return types in callbacks #564

Merged
merged 1 commit into from
Aug 7, 2019

Conversation

totorigolo
Copy link
Contributor

Problem (see #560)

The html! macro didn't properly handle explicit return types in
callbacks, considering the '>' in '->' as the end of the HTML tag.

html! {
    <div onblur=|_| -> u32 0 />
    //               ^ here
}

Fixes: #560

### Problem
The html! macro didn't properly handle explicit return types in
callbacks, considering the '>' in '->' as the end of the HTML tag.

```rust
html! {
    <div onblur=|_| -> u32 0 />
    //               ^ here
}
```

Fixes: yewstack#560
@jstarry
Copy link
Member

jstarry commented Aug 5, 2019

Looks great, once bors and travis are configured, we can merge!

@jstarry
Copy link
Member

jstarry commented Aug 7, 2019

bors r+

bors bot added a commit that referenced this pull request Aug 7, 2019
564: html!: fix explicit return types in callbacks r=jstarry a=totorigolo

### Problem (see #560)
The html! macro didn't properly handle explicit return types in
callbacks, considering the '>' in '->' as the end of the HTML tag.

```rust
html! {
    <div onblur=|_| -> u32 0 />
    //               ^ here
}
```

Fixes: #560

Co-authored-by: Thomas Lacroix <[email protected]>
@bors
Copy link
Contributor

bors bot commented Aug 7, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit c6e1a39 into yewstack:master Aug 7, 2019
@totorigolo totorigolo deleted the fix-callback-explicit-return-type branch August 7, 2019 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Callback properties with return types are not parsed correctly
2 participants