Skip to content

Commit

Permalink
chore(val): fix clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimo committed Jan 24, 2024
1 parent 17d18cc commit 6900d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validator/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use regex::Regex;
///
/// For example, extracts `(0, 100)` from `'integer[0, 100]'`.
pub fn extract_bounds(input: &str) -> Result<Option<(i64, i64)>> {
let re = Regex::new(r#"\[(-?\d+), (-?\d+)\]"#).unwrap();
let re = Regex::new(r"\[(-?\d+), (-?\d+)\]").unwrap();
if let Some(captures) = re.captures(input) {
let lower: i64 = captures[1].parse().unwrap();
let upper: i64 = captures[2].parse().unwrap();
Expand Down

0 comments on commit 6900d76

Please sign in to comment.