Permalink
Browse files

Make helper traits private

  • Loading branch information...
mzabaluev committed Feb 11, 2019
1 parent afc7544 commit ed6bc9c7b4e919ce8131541cefca0780e069e29c
Showing with 4 additions and 4 deletions.
  1. +4 −4 network-ntt/src/client.rs
@@ -162,7 +162,7 @@ enum Request<T: Block> {
),
}

pub trait NttBlock<D, I, H>:
trait NttBlock<D, I, H>:
Block<Id = I, Date = D>
+ core::fmt::Debug
+ HasHeader<Header = H>
@@ -188,7 +188,7 @@ where
{
}

pub trait NttHeader<D, I>:
trait NttHeader<D, I>:
Header<Id = I, Date = D> + cbor_event::Deserialize + cbor_event::Serialize
where
D: chain_core::property::BlockDate + core::fmt::Debug,
@@ -210,11 +210,11 @@ where
{
}

pub trait NttDate: chain_core::property::BlockDate + core::fmt::Debug {}
trait NttDate: chain_core::property::BlockDate + core::fmt::Debug {}

impl<T> NttDate for T where T: chain_core::property::BlockDate + core::fmt::Debug {}

pub trait NttId:
trait NttId:
cbor_event::Deserialize + cbor_event::Serialize + chain_core::property::BlockId + core::fmt::Debug
{
}

0 comments on commit ed6bc9c

Please sign in to comment.