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
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user