remove braces from captured variables
This commit is contained in:
1 parent
2a6d9ed075
commit
3cd4175e2e
2 files changed
+3
-3
No files matched your search
+1
-2
@@ -85,8 +85,7 @@ serde_json = "1.0.79"
|
|||||||
rand = { version = "0.8.4", features = ["small_rng"] }
|
rand = { version = "0.8.4", features = ["small_rng"] }
|
||||||
tokio = { version = "1.16.1", features = ["full"] }
|
tokio = { version = "1.16.1", features = ["full"] }
|
||||||
reqwest = { version = "0.11.9", features = ["json"] }
|
reqwest = { version = "0.11.9", features = ["json"] }
|
||||||
# dioxus = { path = ".", features = ["desktop", "ssr", "router", "fermi", "tui"] }
|
dioxus = { path = ".", features = ["desktop", "ssr", "router", "fermi", "tui"] }
|
||||||
dioxus = { path = ".", features = ["desktop"] }
|
|
||||||
fern = { version = "0.6.0", features = ["colored"] }
|
fern = { version = "0.6.0", features = ["colored"] }
|
||||||
criterion = "0.3.5"
|
criterion = "0.3.5"
|
||||||
thiserror = "1.0.30"
|
thiserror = "1.0.30"
|
||||||
|
|||||||
@@ -142,7 +142,8 @@ impl FormattedSegment {
|
|||||||
return Ok(Self::Ident(ident));
|
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))
|
Ok(Self::Expr(expr))
|
||||||
} else {
|
} else {
|
||||||
Err(Error::new(
|
Err(Error::new(
|
||||||
|
|||||||
Reference in new issue
Block a user