@@ -54,7 +54,7 @@ impl<'a> serialize::Encoder for Encoder<'a> {
5454        Ok ( ( ) ) 
5555    } 
5656
57-     fn  emit_uint ( & mut  self ,  v :  usize )  -> EncodeResult  { 
57+     fn  emit_usize ( & mut  self ,  v :  usize )  -> EncodeResult  { 
5858        write_uleb128 ! ( self ,  v) 
5959    } 
6060
@@ -75,7 +75,7 @@ impl<'a> serialize::Encoder for Encoder<'a> {
7575        Ok ( ( ) ) 
7676    } 
7777
78-     fn  emit_int ( & mut  self ,  v :  isize )  -> EncodeResult  { 
78+     fn  emit_isize ( & mut  self ,  v :  isize )  -> EncodeResult  { 
7979        write_sleb128 ! ( self ,  v) 
8080    } 
8181
@@ -120,7 +120,7 @@ impl<'a> serialize::Encoder for Encoder<'a> {
120120    } 
121121
122122    fn  emit_str ( & mut  self ,  v :  & str )  -> EncodeResult  { 
123-         self . emit_uint ( v. len ( ) ) ?; 
123+         self . emit_usize ( v. len ( ) ) ?; 
124124        let  _ = self . cursor . write_all ( v. as_bytes ( ) ) ; 
125125        Ok ( ( ) ) 
126126    } 
@@ -139,7 +139,7 @@ impl<'a> serialize::Encoder for Encoder<'a> {
139139                            -> EncodeResult 
140140        where  F :  FnOnce ( & mut  Self )  -> EncodeResult 
141141    { 
142-         self . emit_uint ( v_id) ?; 
142+         self . emit_usize ( v_id) ?; 
143143        f ( self ) 
144144    } 
145145
@@ -221,7 +221,7 @@ impl<'a> serialize::Encoder for Encoder<'a> {
221221    fn  emit_seq < F > ( & mut  self ,  len :  usize ,  f :  F )  -> EncodeResult 
222222        where  F :  FnOnce ( & mut  Encoder < ' a > )  -> EncodeResult 
223223    { 
224-         self . emit_uint ( len) ?; 
224+         self . emit_usize ( len) ?; 
225225        f ( self ) 
226226    } 
227227
@@ -234,7 +234,7 @@ impl<'a> serialize::Encoder for Encoder<'a> {
234234    fn  emit_map < F > ( & mut  self ,  len :  usize ,  f :  F )  -> EncodeResult 
235235        where  F :  FnOnce ( & mut  Encoder < ' a > )  -> EncodeResult 
236236    { 
237-         self . emit_uint ( len) ?; 
237+         self . emit_usize ( len) ?; 
238238        f ( self ) 
239239    } 
240240
@@ -329,7 +329,7 @@ impl<'a> serialize::Decoder for Decoder<'a> {
329329        Ok ( value) 
330330    } 
331331
332-     fn  read_uint ( & mut  self )  -> Result < usize ,  Self :: Error >  { 
332+     fn  read_usize ( & mut  self )  -> Result < usize ,  Self :: Error >  { 
333333        read_uleb128 ! ( self ,  usize ) 
334334    } 
335335
@@ -351,7 +351,7 @@ impl<'a> serialize::Decoder for Decoder<'a> {
351351        unsafe  {  Ok ( :: std:: mem:: transmute ( as_u8) )  } 
352352    } 
353353
354-     fn  read_int ( & mut  self )  -> Result < isize ,  Self :: Error >  { 
354+     fn  read_isize ( & mut  self )  -> Result < isize ,  Self :: Error >  { 
355355        read_sleb128 ! ( self ,  isize ) 
356356    } 
357357
@@ -376,7 +376,7 @@ impl<'a> serialize::Decoder for Decoder<'a> {
376376    } 
377377
378378    fn  read_str ( & mut  self )  -> Result < String ,  Self :: Error >  { 
379-         let  len = self . read_uint ( ) ?; 
379+         let  len = self . read_usize ( ) ?; 
380380        let  s = :: std:: str:: from_utf8 ( & self . data [ self . position ..self . position  + len] ) . unwrap ( ) ; 
381381        self . position  += len; 
382382        Ok ( s. to_string ( ) ) 
@@ -391,7 +391,7 @@ impl<'a> serialize::Decoder for Decoder<'a> {
391391    fn  read_enum_variant < T ,  F > ( & mut  self ,  _:  & [ & str ] ,  mut  f :  F )  -> Result < T ,  Self :: Error > 
392392        where  F :  FnMut ( & mut  Decoder < ' a > ,  usize )  -> Result < T ,  Self :: Error > 
393393    { 
394-         let  disr = self . read_uint ( ) ?; 
394+         let  disr = self . read_usize ( ) ?; 
395395        f ( self ,  disr) 
396396    } 
397397
@@ -404,7 +404,7 @@ impl<'a> serialize::Decoder for Decoder<'a> {
404404    fn  read_enum_struct_variant < T ,  F > ( & mut  self ,  _:  & [ & str ] ,  mut  f :  F )  -> Result < T ,  Self :: Error > 
405405        where  F :  FnMut ( & mut  Decoder < ' a > ,  usize )  -> Result < T ,  Self :: Error > 
406406    { 
407-         let  disr = self . read_uint ( ) ?; 
407+         let  disr = self . read_usize ( ) ?; 
408408        f ( self ,  disr) 
409409    } 
410410
@@ -483,7 +483,7 @@ impl<'a> serialize::Decoder for Decoder<'a> {
483483    fn  read_seq < T ,  F > ( & mut  self ,  f :  F )  -> Result < T ,  Self :: Error > 
484484        where  F :  FnOnce ( & mut  Decoder < ' a > ,  usize )  -> Result < T ,  Self :: Error > 
485485    { 
486-         let  len = self . read_uint ( ) ?; 
486+         let  len = self . read_usize ( ) ?; 
487487        f ( self ,  len) 
488488    } 
489489
@@ -496,7 +496,7 @@ impl<'a> serialize::Decoder for Decoder<'a> {
496496    fn  read_map < T ,  F > ( & mut  self ,  f :  F )  -> Result < T ,  Self :: Error > 
497497        where  F :  FnOnce ( & mut  Decoder < ' a > ,  usize )  -> Result < T ,  Self :: Error > 
498498    { 
499-         let  len = self . read_uint ( ) ?; 
499+         let  len = self . read_usize ( ) ?; 
500500        f ( self ,  len) 
501501    } 
502502
0 commit comments