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
|
|
@ -41,13 +41,7 @@ generate_attribute!(Senders, "senders", {
|
|||
Initiator => "initiator",
|
||||
None => "none",
|
||||
Responder => "responder",
|
||||
});
|
||||
|
||||
impl Default for Senders {
|
||||
fn default() -> Senders {
|
||||
Senders::Both
|
||||
}
|
||||
}
|
||||
}, Default = Both);
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Content {
|
||||
|
|
|
|||
Loading…
Reference in a new issue