Skip to content

Commit

Permalink
Merge pull request #62 from yassun7010/refine_sample_code
Browse files Browse the repository at this point in the history
chore: refine sample code.
  • Loading branch information
yassun7010 authored May 7, 2024
2 parents 4d7dfb2 + 7955f7b commit 43320a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion serde_valid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ struct Data {
let err = Data::from_json_value(json!({ "val": 123 })).unwrap_err();

assert_eq!(
err.as_validation_errors().unwrap().to_string(),
err.to_string(),
json!({
"errors": [],
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion serde_valid/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
//! let err = Data::from_json_value(json!({ "val": 123 })).unwrap_err();
//!
//! assert_eq!(
//! err.as_validation_errors().unwrap().to_string(),
//! err.to_string(),
//! json!({
//! "errors": [],
//! "properties": {
Expand Down

0 comments on commit 43320a9

Please sign in to comment.