From 9fe89b53d7a48111215da4e0f2ea380247b9b65b Mon Sep 17 00:00:00 2001 From: Martin Molzer Date: Thu, 22 Aug 2024 21:24:27 +0200 Subject: [PATCH] bless expected output from trybuild --- .../yew-macro/tests/function_component_attr/generic-pass.rs | 6 +++--- packages/yew-macro/tests/hook_attr/hook-trait-item-pass.rs | 2 +- packages/yew-macro/tests/html_macro/node-fail.stderr | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/yew-macro/tests/function_component_attr/generic-pass.rs b/packages/yew-macro/tests/function_component_attr/generic-pass.rs index 29df3007d46..40653add2f4 100644 --- a/packages/yew-macro/tests/function_component_attr/generic-pass.rs +++ b/packages/yew-macro/tests/function_component_attr/generic-pass.rs @@ -68,10 +68,10 @@ fn const_generics() -> ::yew::Html { } fn compile_pass() { - ::yew::html! { a=10 /> }; - ::yew::html! { /> }; + let _ = ::yew::html! { a=10 /> }; + let _ = ::yew::html! { /> }; - ::yew::html! { /> }; + let _ = ::yew::html! { /> }; } fn main() {} diff --git a/packages/yew-macro/tests/hook_attr/hook-trait-item-pass.rs b/packages/yew-macro/tests/hook_attr/hook-trait-item-pass.rs index 7fc8ae6dcc8..dcb7cf84476 100644 --- a/packages/yew-macro/tests/hook_attr/hook-trait-item-pass.rs +++ b/packages/yew-macro/tests/hook_attr/hook-trait-item-pass.rs @@ -11,7 +11,7 @@ pub trait MyTrait { #[yew::hook] pub fn use_query_state( - selector: impl yew::html::IntoPropValue, + _selector: impl yew::html::IntoPropValue, ) -> QueryState where Props: MyTrait, diff --git a/packages/yew-macro/tests/html_macro/node-fail.stderr b/packages/yew-macro/tests/html_macro/node-fail.stderr index 608f3a568c4..fc94b419875 100644 --- a/packages/yew-macro/tests/html_macro/node-fail.stderr +++ b/packages/yew-macro/tests/html_macro/node-fail.stderr @@ -4,7 +4,7 @@ error: only one root html element is allowed (hint: you can wrap multiple html e 4 | html! { "valid" "invalid" }; | ^^^^^^^^^ -error: unexpected token +error: unexpected token, expected `}` --> tests/html_macro/node-fail.rs:5:29 | 5 | html! { { "valid" "invalid" } };