Skip to content

Commit

Permalink
Merge #460
Browse files Browse the repository at this point in the history
460: Fix #458 so that Yew compiles. r=DenisKolodin a=Type1J

After a compiler upgrade, the #[deny(missing_docs)] directive started (correctly) causing the compilation to stop with an error message saying that documentation is required for these 2 macros. I guessed at a short version of what those comments might be, and adding the comments allows Yew to compile.

Co-authored-by: Jay Sistar <jaysistar@yahoo.com>
  • Loading branch information
bors[bot] and Type1J committed Jan 29, 2019
2 parents 2393159 + 77d98b7 commit 0ef52f6
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 0ef52f6

Please sign in to comment.