Skip to content

Commit

Permalink
Fix #458 so that Yew compiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
Type1J committed Jan 28, 2019
1 parent 2393159 commit 77d98b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use html::Component;
use virtual_dom::{Listener, VNode};

/// The html! entrypoint and this implementation had to be separated to prevent infinite recursion.
#[macro_export]
macro_rules! html_impl {
($stack:ident (< > $($tail:tt)*)) => {
Expand Down Expand Up @@ -273,7 +274,7 @@ macro_rules! html_impl {
};
}

// This entrypoint and implementation had separated to prevent infinite recursion.
/// This macro implements JSX-like templates.
#[macro_export]
macro_rules! html {
($($tail:tt)*) => {{
Expand Down

0 comments on commit 77d98b7

Please sign in to comment.