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
No known key found for this signature in database
GPG Key ID: E0148C3F2FBB7A20
5 changed files with 19 additions and 15 deletions

View File

@ -16,7 +16,7 @@
//! Standard built-in contracts.
#![warn(missing_docs)]
#![allow(missing_docs)]
use std::{
cmp::{max, min},

View File

@ -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
//!

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 {

View File

@ -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;

View File

@ -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.