Merge branch 'master' of github.com:DioxusLabs/dioxus
This commit is contained in:
commit
ab74fd2b5c
1 file changed
+5
@@ -59,6 +59,11 @@ impl FromStr for IfmtInput {
|
|||||||
let mut current_captured = String::new();
|
let mut current_captured = String::new();
|
||||||
while let Some(c) = chars.next() {
|
while let Some(c) = chars.next() {
|
||||||
if c == ':' {
|
if c == ':' {
|
||||||
|
// two :s in a row is a path, not a format arg
|
||||||
|
if chars.next_if(|c| *c == ':').is_some() {
|
||||||
|
current_captured.push_str("::");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let mut current_format_args = String::new();
|
let mut current_format_args = String::new();
|
||||||
for c in chars.by_ref() {
|
for c in chars.by_ref() {
|
||||||
if c == '}' {
|
if c == '}' {
|
||||||
|
|||||||
Reference in new issue
Block a user