mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 22:40:09 +01:00
fix: some error handlings
This commit is contained in:
parent
1444eeab84
commit
15c1ba3370
7 changed files with 49 additions and 37 deletions
|
|
@ -93,7 +93,7 @@ fn gen_match_rules(rules: Vec<Rule>) -> TokenStream {
|
|||
suggestion_tokens.push(match_tokens);
|
||||
|
||||
let string_patterns = pattern.join("\", \"");
|
||||
let string_patterns: TokenStream2 = format!("vec![\"{}\"]", string_patterns).parse().unwrap();
|
||||
let string_patterns: TokenStream2 = format!("[\"{}\"]", string_patterns).parse().unwrap();
|
||||
patterns_tokens.push(string_patterns);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue