From 6978e237b9059e4cd580bb67da5ac221d90390ff Mon Sep 17 00:00:00 2001 From: bakape Date: Sun, 23 May 2021 03:04:26 +0500 Subject: [PATCH] yew-macro: fix inability to set the autoplay atribute (#1866) --- packages/yew-macro/src/props/element.rs | 1 + packages/yew-macro/tests/html_macro/block-fail.stderr | 4 ++-- packages/yew-macro/tests/html_macro/html-element-pass.rs | 1 + packages/yew-macro/tests/html_macro/iterable-fail.stderr | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/yew-macro/src/props/element.rs b/packages/yew-macro/src/props/element.rs index 4d95c2a9093..3fb59a56c3f 100644 --- a/packages/yew-macro/src/props/element.rs +++ b/packages/yew-macro/src/props/element.rs @@ -70,6 +70,7 @@ lazy_static! { vec![ "async", "autofocus", + "autoplay", "controls", "default", "defer", diff --git a/packages/yew-macro/tests/html_macro/block-fail.stderr b/packages/yew-macro/tests/html_macro/block-fail.stderr index 26fb5992164..3ed7c79eeab 100644 --- a/packages/yew-macro/tests/html_macro/block-fail.stderr +++ b/packages/yew-macro/tests/html_macro/block-fail.stderr @@ -34,9 +34,9 @@ error[E0277]: `()` doesn't implement `std::fmt::Display` 15 | <>{ for (0..3).map(|_| not_tree()) } | ^^^^^^ `()` cannot be formatted with the default formatter | - ::: $WORKSPACE/packages/yew/src/utils.rs + ::: $WORKSPACE/packages/yew/src/utils.rs:76:8 | - | T: Into, +76 | T: Into, | ------- required by this bound in `into_node_iter` | = help: the trait `std::fmt::Display` is not implemented for `()` diff --git a/packages/yew-macro/tests/html_macro/html-element-pass.rs b/packages/yew-macro/tests/html_macro/html-element-pass.rs index 0c8bb5c372f..1b323244167 100644 --- a/packages/yew-macro/tests/html_macro/html-element-pass.rs +++ b/packages/yew-macro/tests/html_macro/html-element-pass.rs @@ -23,6 +23,7 @@ fn compile_pass() { +