Skip to content

Commit 3ef0bff

Browse files
committed
Upgrade to rustc 0.13.0-nightly (7e11b2271 2014-12-24 20:47:12 +0000)
1 parent 269d6ad commit 3ef0bff

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/ast.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ impl<'a> SkipWhitespaceIterable<'a> for &'a [ComponentValue] {
152152

153153
#[deriving(Clone)]
154154
pub struct SkipWhitespaceIterator<'a> {
155-
pub iter_with_whitespace: slice::Items<'a, ComponentValue>,
155+
pub iter_with_whitespace: slice::Iter<'a, ComponentValue>,
156156
}
157157

158158
impl<'a> Iterator<&'a ComponentValue> for SkipWhitespaceIterator<'a> {
@@ -176,7 +176,7 @@ impl MoveSkipWhitespaceIterable for Vec<ComponentValue> {
176176
}
177177

178178
pub struct MoveSkipWhitespaceIterator {
179-
iter_with_whitespace: vec::MoveItems<ComponentValue>,
179+
iter_with_whitespace: vec::IntoIter<ComponentValue>,
180180
}
181181

182182
impl Iterator<ComponentValue> for MoveSkipWhitespaceIterator {

src/nth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ fn parse_n_dash_digits(string: &str) -> Option<i32> {
111111
&& string.starts_with("n-")
112112
&& string.slice_from(2).chars().all(|c| match c { '0'...'9' => true, _ => false })
113113
{
114-
let result = from_str(string.slice_from(1)); // Include the minus sign
114+
let result = string.slice_from(1).parse(); // Include the minus sign
115115
assert!(result.is_some());
116116
result
117117
}

src/tokenizer.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,14 @@ fn consume_numeric(tokenizer: &mut Tokenizer) -> ComponentValue {
469469
}
470470
let (value, int_value) = {
471471
// TODO: handle overflow
472-
// Remove any + sign as int::from_str() does not parse them.
472+
// Remove any + sign as int::parse() does not parse them.
473473
let repr = if representation.starts_with("+") {
474474
representation.slice_from(1)
475475
} else {
476476
representation.as_slice()
477477
};
478-
(from_str::<f64>(repr).unwrap(), if is_integer {
479-
Some(from_str::<i64>(repr).unwrap())
478+
(repr.parse::<f64>().unwrap(), if is_integer {
479+
Some(repr.parse::<i64>().unwrap())
480480
} else {
481481
None
482482
})

0 commit comments

Comments
 (0)