From 1f0a7e5e73b2ce702a2f9d12965813d75aeb4cfd Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Thu, 17 Oct 2019 10:41:40 -0700 Subject: [PATCH] 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. --- zebra-network/src/protocol/codec.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/zebra-network/src/protocol/codec.rs b/zebra-network/src/protocol/codec.rs index d45cb707..07a6cb7e 100644 --- a/zebra-network/src/protocol/codec.rs +++ b/zebra-network/src/protocol/codec.rs @@ -42,18 +42,6 @@ pub struct Builder { impl 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 { Builder { network: Network::Mainnet,