File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55 * 
66 * TODO: refactor all this to store things in more usefully categorised places. 
77 */ 
8- use  std:: num:: { Unsigned ,  NumCast ,  Int ,  cast} ; 
8+ use  std:: num:: { UnsignedInt ,  NumCast ,  Int ,  cast} ; 
99use  std:: io:: { IoError ,  IoResult ,  OtherIoError } ; 
1010#[ cfg( test) ]  
1111use  std:: io:: MemReader ; 
@@ -43,7 +43,7 @@ const ASCII_UPPER_F: u8 = b'F';
4343 * 
4444 * Should everything work as designed (i.e. none of these conditions occur) a `Some` is returned. 
4545 */ 
46- pub  fn  read_decimal < R :  Reader ,  N :  Unsigned  + NumCast  + Int > 
46+ pub  fn  read_decimal < R :  Reader ,  N :  UnsignedInt  + NumCast  + Int > 
4747                   ( reader :  & mut  R ,  expected_end:  |u8| -> bool) 
4848                   -> IoResult < N >  { 
4949    // Here and in `read_hexadecimal` there is the possibility of infinite sequence of zeroes. The 
@@ -89,7 +89,7 @@ pub fn read_decimal<R: Reader, N: Unsigned + NumCast + Int>
8989 * 
9090 * Should everything work as designed (i.e. none of these conditions occur) a `Some` is returned. 
9191 */ 
92- pub  fn  read_hexadecimal < R :  Reader ,  N :  Unsigned  + NumCast  + Int > 
92+ pub  fn  read_hexadecimal < R :  Reader ,  N :  UnsignedInt  + NumCast  + Int > 
9393                       ( reader :  & mut  R ,  expected_end:  |u8| -> bool) 
9494                       -> IoResult < N >  { 
9595    let  mut  n:  N  = Int :: zero ( ) ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments