remove conflicting default impl
This commit is contained in:
parent
3d95c32d93
commit
d4fdc2d642
@ -50,6 +50,7 @@ impl ConfigField {
|
||||
derive.contains("Tree")
|
||||
|| derive.contains("Serialize")
|
||||
|| derive.contains("Deserialize")
|
||||
|| (self.default.is_some() && derive.contains("Default"))
|
||||
}) == Some(false)
|
||||
});
|
||||
quote! {#[derive(#(#derives,)*)]}
|
||||
|
@ -31,6 +31,14 @@ struct Config {
|
||||
sub_config: SubConfig,
|
||||
}
|
||||
|
||||
/// Config with default derive and default field
|
||||
#[config]
|
||||
#[derive(Default)]
|
||||
struct _DefaultConfig {
|
||||
#[config(default)]
|
||||
field: i32,
|
||||
}
|
||||
|
||||
#[rstest]
|
||||
#[case(0, ["skipped"])]
|
||||
#[case(1, ["min"])]
|
||||
|
Loading…
Reference in New Issue
Block a user