Skip to content

Commit 34a2a6d

Browse files
committed
controllers/helpers/pagination: Allow trailing commas in variant field lists
1 parent 59a3d4d commit 34a2a6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/helpers/pagination.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ impl<T, C> PaginatedQueryWithCountSubq<T, C> {
404404
macro_rules! seek {
405405
// Field struct
406406
(@variant_struct $vis:vis $variant:ident {
407-
$($(#[$field_meta:meta])? $field:ident: $ty:ty),*
407+
$($(#[$field_meta:meta])? $field:ident: $ty:ty),* $(,)?
408408
}) => {
409409
paste::item! {
410410
#[derive(Debug, Default, Deserialize, PartialEq)]

0 commit comments

Comments
 (0)