瀏覽代碼

remove braces from captured variables

Evan Almloff 3 年之前
父節點
當前提交
3cd4175e2e
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 2
      Cargo.toml
  2. 2 1
      packages/rsx/src/ifmt.rs

+ 1 - 2
Cargo.toml

@@ -85,8 +85,7 @@ serde_json = "1.0.79"
 rand = { version = "0.8.4", features = ["small_rng"] }
 tokio = { version = "1.16.1", features = ["full"] }
 reqwest = { version = "0.11.9", features = ["json"] }
-# dioxus = { path = ".", features = ["desktop", "ssr", "router", "fermi", "tui"] }
-dioxus = { path = ".", features = ["desktop"] }
+dioxus = { path = ".", features = ["desktop", "ssr", "router", "fermi", "tui"] }
 fern = { version = "0.6.0", features = ["colored"] }
 criterion = "0.3.5"
 thiserror = "1.0.30"

+ 2 - 1
packages/rsx/src/ifmt.rs

@@ -142,7 +142,8 @@ impl FormattedSegment {
                 return Ok(Self::Ident(ident));
             }
         }
-        if let Ok(expr) = parse_str(&("{".to_string() + input + "}")) {
+        // if let Ok(expr) = parse_str(&("{".to_string() + input + "}")) {
+        if let Ok(expr) = parse_str(input) {
             Ok(Self::Expr(expr))
         } else {
             Err(Error::new(