Fix unused doc warning in Rust 1.35 (#2863)
This version brings a new warning to inform that rustdoc doesn't add docs for macro expansions
This commit is contained in:
+3
-3
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
+2
-2
@@ -333,7 +333,7 @@ bitflags! {
|
||||
}
|
||||
}
|
||||
|
||||
/// Types of connection
|
||||
// Types of connection
|
||||
enum_from_primitive! {
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
|
||||
pub enum Direction {
|
||||
@@ -342,7 +342,7 @@ enum_from_primitive! {
|
||||
}
|
||||
}
|
||||
|
||||
/// Ban reason
|
||||
// Ban reason
|
||||
enum_from_primitive! {
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
|
||||
pub enum ReasonForBan {
|
||||
|
||||
Reference in New Issue
Block a user