Skip to content

Commit 98147c0

Browse files
committed
Unmarked MacroConfig non_exhaustive but added private field
1 parent 6581a05 commit 98147c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rorm-macro-impl/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ pub fn derive_patch(input: TokenStream, config: MacroConfig) -> TokenStream {
4343
/// Configuration for `rorm`'s macros
4444
///
4545
/// This struct can be useful for other crates wrapping `rorm`'s macros to tweak their behaviour.
46-
#[non_exhaustive]
4746
pub struct MacroConfig {
4847
/// Path to the `rorm` crate
4948
///
@@ -52,12 +51,15 @@ pub struct MacroConfig {
5251
/// Defaults to `::rorm` which requires `rorm` to be a direct dependency
5352
/// of any crate using `rorm`'s macros.
5453
pub rorm_path: TokenStream,
54+
55+
_non_exhaustive: (),
5556
}
5657

5758
impl Default for MacroConfig {
5859
fn default() -> Self {
5960
Self {
6061
rorm_path: quote! { ::rorm },
62+
_non_exhaustive: (),
6163
}
6264
}
6365
}

0 commit comments

Comments
 (0)