Allow documentation on packets to be actually be considered documentation by rustdoc

This commit is contained in:
Thinkofname 2016-04-04 23:50:27 +01:00
parent 830f1e55a6
commit ddaf7781ed
2 changed files with 870 additions and 868 deletions

View File

@ -43,9 +43,11 @@ macro_rules! state_packets {
($($state:ident $stateName:ident {
$($dir:ident $dirName:ident {
$(
$name:ident {
$($field:ident: $field_type:ty = $(when ($cond:expr))*, )+
})*
$(#[$attr:meta])*
packet $name:ident {
$($(#[$fattr:meta])*field $field:ident: $field_type:ty = $(when ($cond:expr))*, )+
}
)*
})+
})+) => {
use protocol::*;
@ -83,8 +85,8 @@ macro_rules! state_packets {
$(
#[derive(Default, Debug)]
pub struct $name {
$(pub $field: $field_type),+,
$(#[$attr])* pub struct $name {
$($(#[$fattr])* pub $field: $field_type),+,
}
impl PacketType for $name {

File diff suppressed because it is too large Load Diff