Skip to content

Commit

Permalink
refatoring minmax
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoikey committed Oct 29, 2024
1 parent 112fc8a commit d56c4c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rule/number/min_max.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ macro_rules! define_min_max_rule {

/// 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::Or![$crate::rule::[<EqualRule $t:camel>]<MIN>, $crate::rule::[<GreaterRule $t:camel>]<MIN>],
$crate::Or![$crate::rule::[<EqualRule $t:camel>]<MAX>, $crate::rule::[<LessRule $t:camel>]<MAX>]
$crate::rule::[<GreaterEqualRule $t:camel>]<MIN>,
$crate::rule::[<LessEqualRule $t:camel>]<MAX>
];
}
};
Expand Down

0 comments on commit d56c4c0

Please sign in to comment.