Răsfoiți Sursa

chore: fix rsx printer

Jonathan Kelley 2 ani în urmă
părinte
comite
4e330bc1ec

+ 0 - 38
packages/autofmt/tests/block.rs

@@ -1,38 +0,0 @@
-use std::collections::VecDeque;
-
-use dioxus_rsx::{BodyNode, CallBody};
-
-const LINE_WIDTH: usize = 80;
-
-pub struct Printer {
-    buf: String,
-    // queue: Vec<Item>,
-}
-
-pub enum Break {
-    // Space flexes to line if need be
-    Space,
-
-    // Line always forces a new line
-    // Comments are an example of this
-    Line,
-}
-
-// enum Item {
-//     BreakBegin,
-//     BreakEnd,
-//     Text(Cow<'static, str>),
-// }
-
-impl Printer {
-    fn doit(&mut self, body: CallBody) {
-        for node in body.roots {}
-    }
-    fn node(&mut self, node: BodyNode) {}
-}
-
-#[test]
-fn it_works() {
-    let src = r#"div {}"#;
-    let contents: CallBody = syn::parse_str(src).unwrap();
-}

+ 0 - 5
packages/autofmt/tests/samples/multirsx.rsx

@@ -15,13 +15,8 @@ rsx! {
     //
     //
     div {
-        //
         abcd,
-
-        //
         ball,
-
-        //
         s,
 
         //