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

Empty html macro causes parser to fail #1

Closed
aDogCalledSpot opened this issue Dec 15, 2023 · 1 comment
Closed

Empty html macro causes parser to fail #1

aDogCalledSpot opened this issue Dec 15, 2023 · 1 comment

Comments

@aDogCalledSpot
Copy link

The following code raises an error:

use yew::prelude::*;

#[function_component(App)]
pub fn app() -> Html {
    html! {}
}

The error:

error: unexpected end of input, expected curly braces
  ┌─ /path/to/tmp.rs:1:1
  │
1 │ use yew::prelude::*;
  │ ^

I get the same error with parentheses instead of braces and regardless of formatting.

@its-the-shrimp
Copy link
Owner

Thank you for reporting this as well, should be fixed in v0.2.2, feel free to reopen the issue if the bug resurfaces

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

No branches or pull requests

2 participants