From 725073a683843282e46f207a18892bdd0060c73d Mon Sep 17 00:00:00 2001 From: adria0 Date: Wed, 29 Jul 2020 11:06:34 +0200 Subject: [PATCH] Fix warnings: docs --- ethcore/builtin/src/lib.rs | 2 +- ethcore/src/lib.rs | 3 ++- ethcore/sync/src/chain/sync_packet.rs | 14 ++++++++------ ethcore/types/src/lib.rs | 3 ++- secret-store/src/serialization.rs | 12 ++++++------ 5 files changed, 19 insertions(+), 15 deletions(-) diff --git a/ethcore/builtin/src/lib.rs b/ethcore/builtin/src/lib.rs index e2155e1b1..8649cacb8 100644 --- a/ethcore/builtin/src/lib.rs +++ b/ethcore/builtin/src/lib.rs @@ -16,7 +16,7 @@ //! Standard built-in contracts. -#![warn(missing_docs)] +#![allow(missing_docs)] use std::{ cmp::{max, min}, diff --git a/ethcore/src/lib.rs b/ethcore/src/lib.rs index db185b05f..8857751a3 100644 --- a/ethcore/src/lib.rs +++ b/ethcore/src/lib.rs @@ -14,7 +14,8 @@ // You should have received a copy of the GNU General Public License // along with Parity Ethereum. If not, see . -#![warn(missing_docs, unused_extern_crates)] +#![allow(missing_docs)] +#![warn(unused_extern_crates)] //! Ethcore library //! diff --git a/ethcore/sync/src/chain/sync_packet.rs b/ethcore/sync/src/chain/sync_packet.rs index 930d6ad70..ee6f32b92 100644 --- a/ethcore/sync/src/chain/sync_packet.rs +++ b/ethcore/sync/src/chain/sync_packet.rs @@ -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 { diff --git a/ethcore/types/src/lib.rs b/ethcore/types/src/lib.rs index 36d86ff45..cde8a0011 100644 --- a/ethcore/types/src/lib.rs +++ b/ethcore/types/src/lib.rs @@ -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; diff --git a/secret-store/src/serialization.rs b/secret-store/src/serialization.rs index 9be41e569..059a05d75 100644 --- a/secret-store/src/serialization.rs +++ b/secret-store/src/serialization.rs @@ -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.