From 445e63faac55491238381ee99be485f23915daee Mon Sep 17 00:00:00 2001 From: Ar4ys Date: Thu, 8 Feb 2024 11:50:33 +0100 Subject: [PATCH] Updated view/snapshots in leptos_macro --- ...tests__ssr__full_span__simple_counter.snap | 34 +++---------------- ...cro__view__tests__ssr__simple_counter.snap | 6 ++-- 2 files changed, 7 insertions(+), 33 deletions(-) diff --git a/leptos_macro/src/view/snapshots/leptos_macro__view__tests__ssr__full_span__simple_counter.snap b/leptos_macro/src/view/snapshots/leptos_macro__view__tests__ssr__full_span__simple_counter.snap index b5c776f5c1..7a8a4f85df 100644 --- a/leptos_macro/src/view/snapshots/leptos_macro__view__tests__ssr__full_span__simple_counter.snap +++ b/leptos_macro/src/view/snapshots/leptos_macro__view__tests__ssr__full_span__simple_counter.snap @@ -1,5 +1,6 @@ --- source: leptos_macro/src/view/tests.rs +assertion_line: 101 expression: result --- TokenStream [ @@ -1877,40 +1878,15 @@ TokenStream [ Group { delimiter: Parenthesis, stream: TokenStream [ - Punct { - char: '#', - spacing: Alone, - }, - Group { - delimiter: Bracket, - stream: TokenStream [ - Ident { - sym: allow, - }, - Group { - delimiter: Parenthesis, - stream: TokenStream [ - Ident { - sym: unused_braces, - }, - ], - }, - ], - }, Group { delimiter: Brace, stream: TokenStream [ - Group { - delimiter: Brace, - stream: TokenStream [ - Ident { - sym: value, - span: bytes(206..211), - }, - ], - span: bytes(205..212), + Ident { + sym: value, + span: bytes(206..211), }, ], + span: bytes(205..212), }, ], }, diff --git a/leptos_macro/src/view/snapshots/leptos_macro__view__tests__ssr__simple_counter.snap b/leptos_macro/src/view/snapshots/leptos_macro__view__tests__ssr__simple_counter.snap index 03816d7932..8bf59419a4 100644 --- a/leptos_macro/src/view/snapshots/leptos_macro__view__tests__ssr__simple_counter.snap +++ b/leptos_macro/src/view/snapshots/leptos_macro__view__tests__ssr__simple_counter.snap @@ -1,5 +1,6 @@ --- source: leptos_macro/src/view/tests.rs +assertion_line: 101 expression: pretty(result) --- fn view() { @@ -46,10 +47,7 @@ fn view() { ), #[allow(unused_braces)] { - let view = ::leptos::IntoView::into_view( - #[allow(unused_braces)] - { { value } }, - ); + let view = ::leptos::IntoView::into_view({ value }); ::leptos::leptos_dom::html::StringOrView::View( ::std::rc::Rc::new(move || view.clone()), )