Rename Decoder::read_nil and read_unit.

Because `()` is called "unit" and it makes it match
`Encoder::emit_unit`.
This commit is contained in:
Nicholas Nethercote
2022-01-19 12:09:19 +11:00
parent cbaeec14f9
commit 88600a6d7f
5 changed files with 7 additions and 7 deletions

View File

@@ -459,7 +459,7 @@ macro_rules! implement_ty_decoder {
type Error = String;
$crate::__impl_decoder_methods! {
read_nil -> ();
read_unit -> ();
read_u128 -> u128;
read_u64 -> u64;