Skip to content

Commit

Permalink
Merge pull request #33 from yassun7010/add_comment
Browse files Browse the repository at this point in the history
Add comment
  • Loading branch information
yassun7010 authored Jan 8, 2024
2 parents 7d90870 + d59c9eb commit d38dd22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions serde_valid/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,9 @@ where

pub use serde_valid_derive::Validate;

#[doc(hidden)]
pub mod helpers {
/// This function is used to avoid [rustc(E0282)](https://doc.rust-lang.org/error_codes/E0282.html) error in `#[validate(custom)]` validator on the struct.
pub fn wrap_closure_validation<T>(
data: &T,
f: impl FnOnce(&T) -> Result<(), crate::validation::Error>,
Expand Down

0 comments on commit d38dd22

Please sign in to comment.