mirror of
https://github.com/actix/actix-web.git
synced 2025-04-24 02:34:22 +00:00
fix: add case for empty tuple seperately
This commit is contained in:
parent
9b38868f5f
commit
851a809936
1 changed files with 4 additions and 3 deletions
|
@ -662,9 +662,10 @@ where
|
|||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! services {
|
||||
($($x:expr),* $(,)?) => {
|
||||
($($x,)*)
|
||||
};
|
||||
() => {()};
|
||||
($($x:expr),+ $(,)?) => {
|
||||
($($x,)+)
|
||||
}
|
||||
}
|
||||
|
||||
/// HttpServiceFactory trait impl for tuples
|
||||
|
|
Loading…
Reference in a new issue