Skip to content

Commit

Permalink
fix(deps): fix nutype dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Apr 10, 2024
1 parent 11426b0 commit 53d8273
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/validation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ publish = false
[dependencies]
serde.workspace = true

nutype = { version = "0.4", features = [ "serde" ] }
nutype = { version = "0.4.0", features = [ "serde" ] }
10 changes: 5 additions & 5 deletions crates/validation/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ impl_newtype!(Name, NameError);
impl NewTypeError for NameError {
fn to_string(&self) -> String {
match self {
__nutype_private_Name__::NameError::LenCharMinViolated => {
NameError::LenCharMinViolated => {
"Name must be at least 3 characters long".to_owned()
}
__nutype_private_Name__::NameError::LenCharMaxViolated => {
NameError::LenCharMaxViolated => {
"Name must be at most 256 characters long".to_owned()
}
}
Expand All @@ -55,7 +55,7 @@ impl_newtype!(Email, EmailError);
impl NewTypeError for EmailError {
fn to_string(&self) -> String {
match self {
__nutype_private_Email__::EmailError::LenCharMaxViolated => {
EmailError::LenCharMaxViolated => {
"Email must be at most 256 characters long".to_owned()
}
}
Expand All @@ -81,10 +81,10 @@ impl Debug for Password {
impl NewTypeError for PasswordError {
fn to_string(&self) -> String {
match self {
__nutype_private_Password__::PasswordError::LenCharMinViolated => {
PasswordError::LenCharMinViolated => {
"Password must be at least 8 characters long".to_owned()
}
__nutype_private_Password__::PasswordError::LenCharMaxViolated => {
PasswordError::LenCharMaxViolated => {
"Password must be at most 256 characters long".to_owned()
}
}
Expand Down

0 comments on commit 53d8273

Please sign in to comment.