Switch to using refs instead of owned for autofmt write block out (#2573)

This commit is contained in:
Jonathan Kelley authored and GitHub committed 2024-07-02 12:27:11 -07:00
1 parent d4831edcf7
commit 1404d26455
8 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ fn h_tags_translate() {
let body = rsx_rosetta::rsx_from_html(&dom);
let out = dioxus_autofmt::write_block_out(body).unwrap();
let out = dioxus_autofmt::write_block_out(&body).unwrap();
let expected = r#"
div {
+1 -1
View File
@@ -13,7 +13,7 @@ fn raw_attribute() {
let body = rsx_rosetta::rsx_from_html(&dom);
let out = dioxus_autofmt::write_block_out(body).unwrap();
let out = dioxus_autofmt::write_block_out(&body).unwrap();
let expected = r#"
div {
+2 -2
View File
@@ -17,7 +17,7 @@ fn simple_elements() {
let body = rsx_rosetta::rsx_from_html(&dom);
let out = dioxus_autofmt::write_block_out(body).unwrap();
let out = dioxus_autofmt::write_block_out(&body).unwrap();
let expected = r#"
div {
@@ -50,7 +50,7 @@ fn deeply_nested() {
let body = rsx_rosetta::rsx_from_html(&dom);
let out = dioxus_autofmt::write_block_out(body).unwrap();
let out = dioxus_autofmt::write_block_out(&body).unwrap();
let expected = r#"
div {
+1 -1
View File
@@ -13,7 +13,7 @@ fn web_components_translate() {
let body = rsx_rosetta::rsx_from_html(&dom);
let out = dioxus_autofmt::write_block_out(body).unwrap();
let out = dioxus_autofmt::write_block_out(&body).unwrap();
let expected = r#"
div {