Explorar el Código

add verification right in the read method

master
Isabelle L. hace 5 años
padre
commit
b91db044c9
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. +1
    -0
      src/lib.rs

+ 1
- 0
src/lib.rs Ver fichero

@@ -148,6 +148,7 @@ where
stream.read(&mut contents).await?;

let packet = Packet::from_network(packet_kind, contents, checksum);
packet.verify_integrity()?;

Ok(Some(packet))
}


Cargando…
Cancelar
Guardar