From 3cd4175e2ebcae3e2eba17fe877f037b075614b9 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Sun, 5 Jun 2022 08:39:50 -0500 Subject: [PATCH] remove braces from captured variables --- Cargo.toml | 3 +-- packages/rsx/src/ifmt.rs | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e84eb31ed..172be5eea 100644 --- a/Cargo.toml +++ b/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" diff --git a/packages/rsx/src/ifmt.rs b/packages/rsx/src/ifmt.rs index fba87c2f9..bd4bd2fd4 100644 --- a/packages/rsx/src/ifmt.rs +++ b/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(