Fix warnings: docs

This commit is contained in:
adria0
2020-07-29 11:06:34 +02:00
committed by Artem Vorotnikov
parent c5aed5bab1
commit 725073a683
5 changed files with 19 additions and 15 deletions

View File

@@ -22,15 +22,17 @@
//! to convert to/from the packet id values transmitted over the
//! wire.
#![allow(unused_doc_comments)]
use api::{ETH_PROTOCOL, WARP_SYNC_PROTOCOL_ID};
use network::{PacketId, ProtocolId};
/// An enum that defines all known packet ids in the context of
/// synchronization and provides a mechanism to convert from
/// packet ids (of type PacketId or u8) directly read from the network
/// to enum variants. This implicitly provides a mechanism to
/// check whether a given packet id is known, and to prevent
/// packet id clashes when defining new ids.
// An enum that defines all known packet ids in the context of
// synchronization and provides a mechanism to convert from
// packet ids (of type PacketId or u8) directly read from the network
// to enum variants. This implicitly provides a mechanism to
// check whether a given packet id is known, and to prevent
// packet id clashes when defining new ids.
enum_from_primitive! {
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SyncPacket {