Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoikey committed Oct 29, 2024
1 parent aa257cd commit d04f6b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rule/number/min_max.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ macro_rules! define_min_max_rule {
pub type [<MinMax $t:camel>]<const MIN: $t, const MAX: $t> = $crate::Refined<[<MinMaxRule $t:camel>]<MIN, MAX>>;

/// Rule where the target value must be greater than or equal to `MIN` and less than or equal to `MAX`
pub type [<MinMaxRule $t:camel>]<const MIN: $t, const MAX: $t> = $crate::And![
$crate::rule::[<GreaterEqualRule $t:camel>]<MIN>,
$crate::rule::[<LessEqualRule $t:camel>]<MAX>
pub type [<MinMaxRule $t:camel>]<const MIN: $t, const MAX: $t> = $crate::Or![
$crate::rule::[<RangeRule $t:camel>]<MIN, MAX>,
$crate::rule::[<EqualRule $t:camel>]<MAX>
];
}
};
Expand Down

0 comments on commit d04f6b1

Please sign in to comment.