Remove Codec::builder doctest.
Doctests can only test public API, so now that the Codec is private, we can't have a doctest. Since this test was only a code example (no behaviour test), there's no value in replacing it with a unit test.
This commit is contained in:
parent
c7e0d63bed
commit
1f0a7e5e73
|
@ -42,18 +42,6 @@ pub struct Builder {
|
||||||
|
|
||||||
impl Codec {
|
impl Codec {
|
||||||
/// Return a builder for constructing a [`Codec`].
|
/// Return a builder for constructing a [`Codec`].
|
||||||
///
|
|
||||||
/// # Example
|
|
||||||
/// ```
|
|
||||||
/// # use zebra_network::protocol::codec::Codec;
|
|
||||||
/// use zebra_network::{constants, Network};
|
|
||||||
///
|
|
||||||
/// let codec = Codec::builder()
|
|
||||||
/// .for_network(Network::Mainnet)
|
|
||||||
/// .for_version(constants::CURRENT_VERSION)
|
|
||||||
/// .with_max_body_len(4_000_000)
|
|
||||||
/// .finish();
|
|
||||||
/// ```
|
|
||||||
pub fn builder() -> Builder {
|
pub fn builder() -> Builder {
|
||||||
Builder {
|
Builder {
|
||||||
network: Network::Mainnet,
|
network: Network::Mainnet,
|
||||||
|
|
Loading…
Reference in New Issue