Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
greyblake committed Jul 29, 2024
1 parent c4d1878 commit 383eeaf
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions nutype_macros/src/common/gen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ pub trait GenerateNewtype {
/// happens in 2 stages:
/// * &str -> inner type (parsing)
/// * inner type -> nutype (validation)
///
/// But for the String based types there is no first stage, so the parse error is the same as
/// validation error.
const HAS_DEDICATED_PARSE_ERROR: bool = true;
Expand Down
1 change: 0 additions & 1 deletion test_suite/tests/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,6 @@ mod validation_with_regex {
use once_cell::sync::Lazy;
use regex::Regex;


static PHONE_REGEX_LAZY_LOCK: LazyLock<Regex> =
LazyLock::new(|| Regex::new("^[0-9]{3}-[0-9]{3}$").unwrap());

Expand Down

0 comments on commit 383eeaf

Please sign in to comment.