|
@ -407,7 +407,7 @@ pub fn pso_packet_data(input: TokenStream) -> TokenStream { |
|
|
|
|
|
|
|
|
let impl_pso_data_packet = quote! {
|
|
|
let impl_pso_data_packet = quote! {
|
|
|
impl PSOPacketData for #name {
|
|
|
impl PSOPacketData for #name {
|
|
|
fn from_bytes<R: Read>(mut cur: &mut R) -> Result<Self, PacketParseError> {
|
|
|
|
|
|
|
|
|
fn from_bytes<R: std::io::Read>(mut cur: &mut R) -> Result<Self, PacketParseError> {
|
|
|
Ok(#name {
|
|
|
Ok(#name {
|
|
|
#(#from_bytes)*
|
|
|
#(#from_bytes)*
|
|
|
})
|
|
|
})
|
|
|