Skip to content

Commit d04f6b1

Browse files
committed
refactoring
1 parent aa257cd commit d04f6b1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rule/number/min_max.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ macro_rules! define_min_max_rule {
55
pub type [<MinMax $t:camel>]<const MIN: $t, const MAX: $t> = $crate::Refined<[<MinMaxRule $t:camel>]<MIN, MAX>>;
66

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

0 commit comments

Comments
 (0)