From 0477d21df5a6c49d6e3b9ef489b4048ae3a98a2e Mon Sep 17 00:00:00 2001 From: Titouan Rigoudy Date: Tue, 26 Jan 2021 19:53:25 +0100 Subject: [PATCH] Remove failing doctests. --- src/proto/core/value.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/proto/core/value.rs b/src/proto/core/value.rs index 772ddc1..5e862b2 100644 --- a/src/proto/core/value.rs +++ b/src/proto/core/value.rs @@ -241,11 +241,7 @@ impl<'a> ValueDecoder<'a> { /// Attempts to decode a value of the given type. /// - /// Allows easy decoding of complex values using type inference: - /// - /// ``` - /// let val: Foo = decoder.decode()?; - /// ``` + /// Allows easy decoding of complex values using type inference. pub fn decode(&mut self) -> Result { T::decode_from(self) } @@ -388,10 +384,7 @@ impl<'a> ValueEncoder<'a> { /// Encodes the given value into the underlying buffer. /// - /// Allows for easy encoding with type inference: - /// ``` - /// encoder.encode(&Foo::new(bar))?; - /// ``` + /// Allows for easy encoding with type inference. pub fn encode( &mut self, val: &T,