Skip to content

Commit

Permalink
chore: change format.
Browse files Browse the repository at this point in the history
  • Loading branch information
yassun7010 committed May 14, 2024
1 parent 79668d8 commit 15919a1
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions serde_valid/src/utils/duration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ pub fn duration_maximum(
Ok(())
} else {
Err(crate::validation::Error::Custom(format!(
"Duration {:?} is greater than maximum {:?}.",
val, maximum
"Duration {val:?} is greater than maximum {maximum:?}.",
)))
}
}
Expand All @@ -25,8 +24,7 @@ pub fn duration_minimum(
Ok(())
} else {
Err(crate::validation::Error::Custom(format!(
"Duration {:?} is less than minimum {:?}.",
val, minimum
"Duration {val:?} is less than minimum {minimum:?}.",
)))
}
}
Expand All @@ -41,8 +39,7 @@ pub fn duration_exclusive_maximum(
Ok(())
} else {
Err(crate::validation::Error::Custom(format!(
"Duration {:?} is greater than or equal to exclusive maximum {:?}.",
val, maximum
"Duration {val:?} is greater than or equal to exclusive maximum {maximum:?}.",
)))
}
}
Expand All @@ -57,8 +54,7 @@ pub fn duration_exclusive_minimum(
Ok(())
} else {
Err(crate::validation::Error::Custom(format!(
"Duration {:?} is less than or equal to exclusive minimum {:?}.",
val, minimum
"Duration {val:?} is less than or equal to exclusive minimum {minimum:?}.",
)))
}
}
Expand Down

0 comments on commit 15919a1

Please sign in to comment.