fix: add case for empty tuple seperately

This commit is contained in:
Durairaj Subramaniam 2024-10-07 22:37:48 +01:00
parent 9b38868f5f
commit 851a809936
No known key found for this signature in database
GPG Key ID: 8D10F94C0323BABE
1 changed files with 4 additions and 3 deletions

View File

@ -662,9 +662,10 @@ where
/// ```
#[macro_export]
macro_rules! services {
($($x:expr),* $(,)?) => {
($($x,)*)
};
() => {()};
($($x:expr),+ $(,)?) => {
($($x,)+)
}
}
/// HttpServiceFactory trait impl for tuples