Fix warnings: docs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user