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. //! Standard built-in contracts.
#![warn(missing_docs)] #![allow(missing_docs)]
use std::{ use std::{
cmp::{max, min}, cmp::{max, min},

View File

@ -14,7 +14,8 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Parity Ethereum. If not, see <http://www.gnu.org/licenses/>. // 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 //! Ethcore library
//! //!

View File

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

View File

@ -31,7 +31,8 @@
//! we should try to dissolve that crate in favour of more fine-grained crates, //! 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. //! 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 ethereum_types;
extern crate ethjson; extern crate ethjson;

View File

@ -105,22 +105,22 @@ pub type SerializableMessageHash = SerializableH256;
/// Serializable address; /// Serializable address;
pub type SerializableAddress = SerializableH160; pub type SerializableAddress = SerializableH160;
/// Serializable Bytes. // Serializable Bytes.
impl_bytes!(SerializableBytes, Bytes, true, (Default)); impl_bytes!(SerializableBytes, Bytes, true, (Default));
/// Serializable H256. // Serializable H256.
impl_bytes!(SerializableH256, H256, false, (Default, PartialOrd, Ord)); impl_bytes!(SerializableH256, H256, false, (Default, PartialOrd, Ord));
/// Serializable H160. // Serializable H160.
impl_bytes!(SerializableH160, H160, false, (Default)); impl_bytes!(SerializableH160, H160, false, (Default));
/// Serializable H512 (aka Public). // Serializable H512 (aka Public).
impl_bytes!( impl_bytes!(
SerializablePublic, SerializablePublic,
Public, Public,
false, false,
(Default, PartialOrd, Ord) (Default, PartialOrd, Ord)
); );
/// Serializable Secret. // Serializable Secret.
impl_bytes!(SerializableSecret, Secret, false, ()); impl_bytes!(SerializableSecret, Secret, false, ());
/// Serializable Signature. // Serializable Signature.
impl_bytes!(SerializableSignature, Signature, false, ()); impl_bytes!(SerializableSignature, Signature, false, ());
/// Serializable shadow decryption result. /// Serializable shadow decryption result.