Skip to content

Commit f25d41a

Browse files
committed
fix a bug
1 parent a1c7e75 commit f25d41a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repository = "https://github.com/tomoikey/refined-type"
66
readme = "README.md"
77
categories = ["accessibility", "development-tools"]
88
license = "MIT"
9-
version = "0.4.6"
9+
version = "0.4.7"
1010
edition = "2021"
1111

1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src/rule/number/greater.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ macro_rules! greater_rule {
2121
}
2222
}
2323
};
24-
($t: ty, $($ts: ty),+) => {
25-
greater_rule! {$t}
26-
greater_rule! {$($ts), +}
24+
(($e: literal, $t: ty), $(($es: literal, $ts: ty)),+) => {
25+
greater_rule!(($e, $t));
26+
greater_rule!($(($es, $ts)), +);
2727
};
2828
}
2929

src/rule/number/less.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ macro_rules! less_rule {
2121
}
2222
}
2323
};
24-
($t: ty, $($ts: ty),+) => {
25-
less_rule! {$t}
26-
less_rule! {$($ts), +}
24+
(($e: literal, $t: ty), $(($es: literal, $ts: ty)),+) => {
25+
greater_rule!(($e, $t));
26+
greater_rule!($(($es, $ts)), +);
2727
};
2828
}
2929

0 commit comments

Comments
 (0)