mirror of https://github.com/LemmyNet/lemmy.git
Fix attribute filtering in WithoutId macro
parent
237b8d6f54
commit
acaa4902b0
|
@ -53,7 +53,7 @@ macro_rules! WithoutId {
|
||||||
// Keep on removing the first attribute until `diesel(table_name = ...)` becomes
|
// Keep on removing the first attribute until `diesel(table_name = ...)` becomes
|
||||||
// the first, which will cause the first pattern to be matched.
|
// the first, which will cause the first pattern to be matched.
|
||||||
(#[$_meta:meta] $($remaining:tt)*) => {
|
(#[$_meta:meta] $($remaining:tt)*) => {
|
||||||
$($remaining)*
|
WithoutId!($($remaining)*);
|
||||||
};
|
};
|
||||||
|
|
||||||
// This pattern is matched when there's no attributes.
|
// This pattern is matched when there's no attributes.
|
||||||
|
|
Loading…
Reference in New Issue