File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ macro_rules! implement_ty_decoder {
298
298
type Error = String ;
299
299
300
300
__impl_decoder_methods! {
301
- read_unit -> ( ) ;
301
+ read_nil -> ( ) ;
302
302
303
303
read_u128 -> u128 ;
304
304
read_u64 -> u64 ;
Original file line number Diff line number Diff line change @@ -2128,7 +2128,7 @@ macro_rules! read_primitive {
2128
2128
impl :: Decoder for Decoder {
2129
2129
type Error = DecoderError ;
2130
2130
2131
- fn read_unit ( & mut self ) -> DecodeResult < ( ) > {
2131
+ fn read_nil ( & mut self ) -> DecodeResult < ( ) > {
2132
2132
expect ! ( self . pop( ) , Null )
2133
2133
}
2134
2134
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ impl<'a> serialize::Decoder for Decoder<'a> {
228
228
type Error = String ;
229
229
230
230
#[ inline]
231
- fn read_unit ( & mut self ) -> Result < ( ) , Self :: Error > {
231
+ fn read_nil ( & mut self ) -> Result < ( ) , Self :: Error > {
232
232
Ok ( ( ) )
233
233
}
234
234
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ pub trait Decoder {
167
167
type Error ;
168
168
169
169
// Primitive types:
170
- fn read_unit ( & mut self ) -> Result < ( ) , Self :: Error > ;
170
+ fn read_nil ( & mut self ) -> Result < ( ) , Self :: Error > ;
171
171
fn read_usize ( & mut self ) -> Result < usize , Self :: Error > ;
172
172
fn read_u128 ( & mut self ) -> Result < u128 , Self :: Error > ;
173
173
fn read_u64 ( & mut self ) -> Result < u64 , Self :: Error > ;
@@ -543,7 +543,7 @@ impl Encodable for () {
543
543
544
544
impl Decodable for ( ) {
545
545
fn decode < D : Decoder > ( d : & mut D ) -> Result < ( ) , D :: Error > {
546
- d. read_unit ( )
546
+ d. read_nil ( )
547
547
}
548
548
}
549
549
You can’t perform that action at this time.
0 commit comments