Skip to content

Commit b090d14

Browse files
committed
Merge pull request chris-morgan#194 from PudgePacket/patch-1
Fix for rust nightly
2 parents 027f494 + fddead8 commit b090d14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/http/common.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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};
99
use std::io::{IoError, IoResult, OtherIoError};
1010
#[cfg(test)]
1111
use 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();

0 commit comments

Comments
 (0)