Browse Source

use full Read path in proc_macros

pull/3/head
jake 5 years ago
parent
commit
cd3ba96f91
  1. 2
      psopacket/src/lib.rs

2
psopacket/src/lib.rs

@ -407,7 +407,7 @@ pub fn pso_packet_data(input: TokenStream) -> TokenStream {
let impl_pso_data_packet = quote! {
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 {
#(#from_bytes)*
})

Loading…
Cancel
Save