mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Clippy
This commit is contained in:
parent
c7a1d29695
commit
630a8e32d4
2 changed files with 2 additions and 5 deletions
|
@ -202,7 +202,7 @@ fn parse_queries(src: &str, line_info: &LineInfo) -> Vec<TypeQuery> {
|
|||
for directive in directives.as_str().split(',') {
|
||||
let directive = RE_DIRECTIVE
|
||||
.captures(directive)
|
||||
.expect(&format!("directive {directive} must match RE_DIRECTIVE"));
|
||||
.unwrap_or_else(|| panic!("directive {directive} must match RE_DIRECTIVE"));
|
||||
if let Some(sub) = directive.name("sub") {
|
||||
subtract_col += sub.as_str().parse::<u32>().expect("must be a number");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue