1
Fork 0

Delete Decoder::read_unit

This commit is contained in:
Mark Rousskov 2022-02-22 18:14:51 -05:00
parent 2098ea6eba
commit f1bcb0f3af
5 changed files with 4 additions and 17 deletions

View file

@ -63,8 +63,7 @@ impl<S: serialize::Encoder> serialize::Encodable<S> for PredecessorCache {
impl<D: serialize::Decoder> serialize::Decodable<D> for PredecessorCache {
#[inline]
fn decode(d: &mut D) -> Self {
let () = d.read_unit();
fn decode(_: &mut D) -> Self {
Self::new()
}
}

View file

@ -465,8 +465,6 @@ macro_rules! implement_ty_decoder {
impl<$($typaram ),*> Decoder for $DecoderName<$($typaram),*> {
$crate::__impl_decoder_methods! {
read_unit -> ();
read_u128 -> u128;
read_u64 -> u64;
read_u32 -> u32;