|
if format!("{}", quote!(#path)) == "debug" { |
|
if format!("{}", attr.tts) == "( Clear )" { |
|
visible = true; |
|
} |
|
if format!("{}", attr.tts) == "( Hidden )" { |
|
hidden = true; |
|
} |
Right now we re-quote the AST branch and transform them into text for string comparison, use something more idiomatic for this check.
hazy/hazy_derive/src/lib.rs
Lines 25 to 31 in a798e34
Right now we re-quote the AST branch and transform them into text for string comparison, use something more idiomatic for this check.