Switch to using refs instead of owned for autofmt write block out (#2573)
This commit is contained in:
1 parent
d4831edcf7
commit
1404d26455
8 files changed
+11
-11
No files matched your search
@@ -18,7 +18,7 @@ fn main() {
|
||||
|
||||
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();
|
||||
|
||||
println!("{out}");
|
||||
}
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user