Skip to content

Commit

Permalink
style: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tu6ge committed Apr 24, 2024
1 parent 6373f07 commit 314ecf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/rule/available/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ pub use contains::Contains;
pub use email::Email;
pub use end_with::EndsWith;
pub use length::Length;
pub use not::Not;
pub use range::Range;
pub use required::Required;
pub use start_with::StartWith;
pub use trim::Trim;
pub use not::Not;

/// Error message, it is returned when build-in rules validate fail
#[derive(Debug, Clone, Eq, PartialEq, Serialize)]
Expand Down
6 changes: 3 additions & 3 deletions src/rule/available/not.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Reverse existing rules
//!
//!
//! # Examples
//! ```
//! # use serde::Serialize;
Expand All @@ -16,15 +16,15 @@
//! .validate(Validator::new().rule("email", Not(Contains('@'))))
//! .unwrap();
//!
//!
//!
//!
//! let input = Input {
//! email: String::from("[email protected]"),
//! };
//! let err = input
//! .validate(Validator::new().rule("email", Not(Contains('@'))))
//! .unwrap_err();
//!
//!
//! assert!(matches!(
//! err.get("email").unwrap()[0].kind(),
//! MessageKind::Contains(_)
Expand Down

0 comments on commit 314ecf3

Please sign in to comment.