mirror of https://github.com/fafhrd91/actix-web
fix: add case for empty tuple seperately
This commit is contained in:
parent
9b38868f5f
commit
851a809936
|
@ -662,9 +662,10 @@ where
|
||||||
/// ```
|
/// ```
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! services {
|
macro_rules! services {
|
||||||
($($x:expr),* $(,)?) => {
|
() => {()};
|
||||||
($($x,)*)
|
($($x:expr),+ $(,)?) => {
|
||||||
};
|
($($x,)+)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// HttpServiceFactory trait impl for tuples
|
/// HttpServiceFactory trait impl for tuples
|
||||||
|
|
Loading…
Reference in New Issue