Move the Default implementation into more generate_attribute!.
This commit is contained in:
parent
0f297d2d2d
commit
ebc7582250
3 changed files with 3 additions and 21 deletions
|
|
@ -25,13 +25,7 @@ generate_attribute!(FieldType, "type", {
|
|||
TextMulti => "text-multi",
|
||||
TextPrivate => "text-private",
|
||||
TextSingle => "text-single",
|
||||
});
|
||||
|
||||
impl Default for FieldType {
|
||||
fn default() -> FieldType {
|
||||
FieldType::TextSingle
|
||||
}
|
||||
}
|
||||
}, Default = TextSingle);
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Option_ {
|
||||
|
|
|
|||
Loading…
Reference in a new issue