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
|
|
@ -108,13 +108,7 @@ generate_attribute!(MessageType, "type", {
|
|||
Groupchat => "groupchat",
|
||||
Headline => "headline",
|
||||
Normal => "normal",
|
||||
});
|
||||
|
||||
impl Default for MessageType {
|
||||
fn default() -> MessageType {
|
||||
MessageType::Normal
|
||||
}
|
||||
}
|
||||
}, Default = Normal);
|
||||
|
||||
type Lang = String;
|
||||
type Body = String;
|
||||
|
|
|
|||
Loading…
Reference in a new issue