Skip to content

Commit

Permalink
Fix unused doc warning in Rust 1.35 (#2863)
Browse files Browse the repository at this point in the history
This version brings a new warning to inform that rustdoc doesn't add docs for macro
expansions
  • Loading branch information
hashmap authored and garyyu committed May 30, 2019
1 parent 2863ed6 commit 25a2ee1
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions core/src/core/id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ impl<H: Hashed> ShortIdentifiable for H {
pub struct ShortId([u8; 6]);

impl DefaultHashable for ShortId {}
/// We want to sort short_ids in a canonical and consistent manner so we can
/// verify sort order in the same way we do for full inputs|outputs|kernels
/// themselves.
// We want to sort short_ids in a canonical and consistent manner so we can
// verify sort order in the same way we do for full inputs|outputs|kernels
// themselves.
hashable_ord!(ShortId);

impl ::std::fmt::Debug for ShortId {
Expand Down
4 changes: 2 additions & 2 deletions core/src/core/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use std::cmp::{max, min};
use std::sync::Arc;
use std::{error, fmt};

/// Enum of various supported kernel "features".
// Enum of various supported kernel "features".
enum_from_primitive! {
/// Various flavors of tx kernel.
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
Expand Down Expand Up @@ -1214,7 +1214,7 @@ impl Input {
}
}

/// Enum of various supported kernel "features".
// Enum of various supported kernel "features".
enum_from_primitive! {
/// Various flavors of tx kernel.
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
Expand Down
6 changes: 3 additions & 3 deletions p2p/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ const OTHER_MAGIC: [u8; 2] = [73, 43];
const FLOONET_MAGIC: [u8; 2] = [83, 59];
const MAINNET_MAGIC: [u8; 2] = [97, 61];

/// Types of messages.
/// Note: Values here are *important* so we should only add new values at the
/// end.
// Types of messages.
// Note: Values here are *important* so we should only add new values at the
// end.
enum_from_primitive! {
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum Type {
Expand Down
2 changes: 1 addition & 1 deletion p2p/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const STORE_SUBPATH: &'static str = "peers";

const PEER_PREFIX: u8 = 'P' as u8;

/// Types of messages
// Types of messages
enum_from_primitive! {
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub enum State {
Expand Down
4 changes: 2 additions & 2 deletions p2p/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ bitflags! {
}
}

/// Types of connection
// Types of connection
enum_from_primitive! {
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub enum Direction {
Expand All @@ -342,7 +342,7 @@ enum_from_primitive! {
}
}

/// Ban reason
// Ban reason
enum_from_primitive! {
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub enum ReasonForBan {
Expand Down

0 comments on commit 25a2ee1

Please sign in to comment.