Skip to content

Commit cd0608e

Browse files
committed
re-export paste
1 parent 7076b62 commit cd0608e

File tree

10 files changed

+13
-11
lines changed

10 files changed

+13
-11
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", "rust-patterns"]
88
license = "MIT"
9-
version = "0.5.2"
9+
version = "0.5.3"
1010
edition = "2021"
1111

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

src/lib.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
pub use paste;
2+
3+
pub use refined::Refined;
4+
15
mod refined;
26
pub mod result;
37
pub mod rule;
4-
5-
pub use refined::Refined;

src/rule/length/equal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#[macro_export]
1616
macro_rules! length_equal {
1717
($length:literal) => {
18-
paste::item! {
18+
$crate::paste::item! {
1919
/// A type that holds a value satisfying the LengthEqualN rule.
2020
#[allow(dead_code)]
2121
pub type [<LengthEqual $length>]<ITEM> = $crate::Refined<[<LengthEqualRule $length>]<ITEM>>;

src/rule/length/grater.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#[macro_export]
1515
macro_rules! length_greater_than {
1616
($length:literal) => {
17-
paste::item! {
17+
$crate::paste::item! {
1818
/// A type that holds a value satisfying the LengthGreaterThanN rule.
1919
#[allow(dead_code)]
2020
pub type [<LengthGreaterThan $length>]<ITEM> = $crate::Refined<[<LengthGreaterThanRule $length>]<ITEM>>;

src/rule/length/less.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#[macro_export]
1616
macro_rules! length_less_than {
1717
($length:literal) => {
18-
paste::item! {
18+
$crate::paste::item! {
1919
/// A type that holds a value satisfying the LengthLessThanN rule.
2020
#[allow(dead_code)]
2121
pub type [<LengthLessThan $length>]<ITEM> = $crate::Refined<[<LengthLessThanRule $length>]<ITEM>>;

src/rule/number/equal.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#[macro_export]
33
macro_rules! equal_rule {
44
(($e: literal, $t: ty)) => {
5-
paste::item! {
5+
$crate::paste::item! {
66
/// `Equal[N][TYPE]` is a type that indicates that the number is equal to `N`.
77
#[allow(dead_code)]
88
pub type [<Equal $e $t>] = $crate::Refined<[<EqualRule $e $t>]>;

src/rule/number/even.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
macro_rules! even_rule {
22
($t: ty) => {
3-
paste::item! {
3+
$crate::paste::item! {
44
/// `Even[TYPE]` is a type that represents that the number is even.
55
#[allow(dead_code)]
66
pub type [<Even $t:upper>] = $crate::Refined<[<EvenRule $t:upper>]>;

src/rule/number/greater.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#[macro_export]
33
macro_rules! greater_rule {
44
(($e: literal, $t: ty)) => {
5-
paste::item! {
5+
$crate::paste::item! {
66
/// `Greater[N][TYPE]` is a type that indicates that the number is greater than `N`.
77
#[allow(dead_code)]
88
pub type [<Greater $e $t>] = $crate::Refined<[<GreaterRule $e $t>]>;

src/rule/number/less.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#[macro_export]
33
macro_rules! less_rule {
44
(($e: literal, $t: ty)) => {
5-
paste::item! {
5+
$crate::paste::item! {
66
/// `Less[N][TYPE]` is a type that indicates that the number is less than `N`.
77
#[allow(dead_code)]
88
pub type [<Less $e $t>] = $crate::Refined<[<LessRule $e $t>]>;

src/rule/number/odd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
macro_rules! odd_rule {
22
($t: ty) => {
3-
paste::item! {
3+
$crate::paste::item! {
44
/// `Odd[TYPE]` is a type that represents that the number is odd.
55
pub type [<Odd $t:upper>] = $crate::Refined<[<OddRule $t:upper>]>;
66
/// Rule where the number is odd

0 commit comments

Comments
 (0)