Skip to content

Commit

Permalink
Updated view/snapshots in leptos_macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Ar4ys committed Feb 8, 2024
1 parent e7ddda3 commit 445e63f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 33 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: leptos_macro/src/view/tests.rs
assertion_line: 101
expression: result
---
TokenStream [
Expand Down Expand Up @@ -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),
},
],
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: leptos_macro/src/view/tests.rs
assertion_line: 101
expression: pretty(result)
---
fn view() {
Expand Down Expand Up @@ -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()),
)
Expand Down

0 comments on commit 445e63f

Please sign in to comment.