Fix warnings: docs
This commit is contained in:
parent
c5aed5bab1
commit
725073a683
@ -16,7 +16,7 @@
|
||||
|
||||
//! Standard built-in contracts.
|
||||
|
||||
#![warn(missing_docs)]
|
||||
#![allow(missing_docs)]
|
||||
|
||||
use std::{
|
||||
cmp::{max, min},
|
||||
|
@ -14,7 +14,8 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
#![warn(missing_docs, unused_extern_crates)]
|
||||
#![allow(missing_docs)]
|
||||
#![warn(unused_extern_crates)]
|
||||
|
||||
//! Ethcore library
|
||||
//!
|
||||
|
@ -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 {
|
||||
|
@ -31,7 +31,8 @@
|
||||
//! we should try to dissolve that crate in favour of more fine-grained crates,
|
||||
//! by moving the types closer to where they are actually required.
|
||||
|
||||
#![warn(missing_docs, unused_extern_crates)]
|
||||
#![allow(missing_docs)]
|
||||
#![warn(unused_extern_crates)]
|
||||
|
||||
extern crate ethereum_types;
|
||||
extern crate ethjson;
|
||||
|
@ -105,22 +105,22 @@ pub type SerializableMessageHash = SerializableH256;
|
||||
/// Serializable address;
|
||||
pub type SerializableAddress = SerializableH160;
|
||||
|
||||
/// Serializable Bytes.
|
||||
// Serializable Bytes.
|
||||
impl_bytes!(SerializableBytes, Bytes, true, (Default));
|
||||
/// Serializable H256.
|
||||
// Serializable H256.
|
||||
impl_bytes!(SerializableH256, H256, false, (Default, PartialOrd, Ord));
|
||||
/// Serializable H160.
|
||||
// Serializable H160.
|
||||
impl_bytes!(SerializableH160, H160, false, (Default));
|
||||
/// Serializable H512 (aka Public).
|
||||
// Serializable H512 (aka Public).
|
||||
impl_bytes!(
|
||||
SerializablePublic,
|
||||
Public,
|
||||
false,
|
||||
(Default, PartialOrd, Ord)
|
||||
);
|
||||
/// Serializable Secret.
|
||||
// Serializable Secret.
|
||||
impl_bytes!(SerializableSecret, Secret, false, ());
|
||||
/// Serializable Signature.
|
||||
// Serializable Signature.
|
||||
impl_bytes!(SerializableSignature, Signature, false, ());
|
||||
|
||||
/// Serializable shadow decryption result.
|
||||
|
Loading…
Reference in New Issue
Block a user