1
0
Fork 0
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:
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

View file

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