From 77004abcfa55e604dd2274ef65564370923e5778 Mon Sep 17 00:00:00 2001 From: Quat3rnion Date: Tue, 18 Jun 2024 05:24:42 -0400 Subject: [PATCH] Feature lock the macro --- src/types/utils/rights.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types/utils/rights.rs b/src/types/utils/rights.rs index ec1cd9c..e7de4fc 100644 --- a/src/types/utils/rights.rs +++ b/src/types/utils/rights.rs @@ -18,7 +18,8 @@ bitflags! { /// /// # Reference /// See - #[derive(Debug, Clone, Copy, Eq, PartialEq, chorus_macros::SqlxBitFlags)] + #[derive(Debug, Clone, Copy, Eq, PartialEq)] + #[cfg_attr(feature = "sqlx", derive(chorus_macros::SqlxBitFlags))] pub struct Rights: u64 { /// All rights const OPERATOR = 1 << 0;