mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-02-17 06:08:26 +00:00
Merge pull request #108 from DioxusLabs/jk/fstring-component-fields
Fix: string formatting detection in component fields
This commit is contained in:
commit
f4132d1874
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ fn is_literal_foramtted(lit: &LitStr) -> bool {
|
||||||
while let Some(next) = chars.next() {
|
while let Some(next) = chars.next() {
|
||||||
if next == '{' {
|
if next == '{' {
|
||||||
let nen = chars.next();
|
let nen = chars.next();
|
||||||
if nen == Some('{') {
|
if nen != Some('{') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue