diff --git a/stylance/src/lib.rs b/stylance/src/lib.rs index d1e3b20..e4b1814 100644 --- a/stylance/src/lib.rs +++ b/stylance/src/lib.rs @@ -347,4 +347,8 @@ macro_rules! classes { ($($exp:expr),+) => { ::stylance::JoinClasses::join_classes([$($exp.into()),*].as_slice()) }; + // Same, handling case with a trailing comma + ($($exp:expr),+,) => { + ::stylance::JoinClasses::join_classes([$($exp.into()),*].as_slice()) + }; }