Skip to content

Commit 8ebc6f9

Browse files
fix: spec_error is used by try_from derive (#3915)
The `try_from` field attribute in `FromRow` uses `__spec_error` to generate a column decode error. The `spec_error` is currently gated behind the macros feature flag only, but should also be available when using only `derive`.
1 parent 2970559 commit 8ebc6f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ mod macros;
101101
#[doc(hidden)]
102102
pub mod ty_match;
103103

104-
#[cfg(feature = "macros")]
104+
#[cfg(any(feature = "derive", feature = "macros"))]
105105
#[doc(hidden)]
106106
pub mod spec_error;
107107

0 commit comments

Comments
 (0)