Fix attribute filtering in WithoutId macro

pull/3755/head
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
1 changed files with 1 additions and 1 deletions

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.