Merge pull request #108 from DioxusLabs/jk/fstring-component-fields

Fix: string formatting detection in component fields
This commit is contained in:
Jonathan Kelley 2022-01-10 01:20:58 -05:00 committed by GitHub
commit f4132d1874
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,7 @@ fn is_literal_foramtted(lit: &LitStr) -> bool {
while let Some(next) = chars.next() {
if next == '{' {
let nen = chars.next();
if nen == Some('{') {
if nen != Some('{') {
return true;
}
}