Fix attribute filtering in WithoutId macro

This commit is contained in:
dullbananas 2023-08-01 14:11:27 -07:00 committed by GitHub
parent 237b8d6f54
commit acaa4902b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,7 +53,7 @@ macro_rules! WithoutId {
// Keep on removing the first attribute until `diesel(table_name = ...)` becomes
// the first, which will cause the first pattern to be matched.
(#[$_meta:meta] $($remaining:tt)*) => {
$($remaining)*
WithoutId!($($remaining)*);
};
// This pattern is matched when there's no attributes.