Skip to content

Commit d56c4c0

Browse files
committed
refatoring minmax
1 parent 112fc8a commit d56c4c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rule/number/min_max.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ macro_rules! define_min_max_rule {
66

77
/// Rule where the target value must be greater than or equal to `MIN` and less than or equal to `MAX`
88
pub type [<MinMaxRule $t:camel>]<const MIN: $t, const MAX: $t> = $crate::And![
9-
$crate::Or![$crate::rule::[<EqualRule $t:camel>]<MIN>, $crate::rule::[<GreaterRule $t:camel>]<MIN>],
10-
$crate::Or![$crate::rule::[<EqualRule $t:camel>]<MAX>, $crate::rule::[<LessRule $t:camel>]<MAX>]
9+
$crate::rule::[<GreaterEqualRule $t:camel>]<MIN>,
10+
$crate::rule::[<LessEqualRule $t:camel>]<MAX>
1111
];
1212
}
1313
};

0 commit comments

Comments
 (0)