Skip to content

Commit ca06a86

Browse files
committed
Update to current rust: std::vec -> std::slice.
1 parent 093b9c0 commit ca06a86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ast.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
44

55
use std::fmt;
6-
use std::vec;
6+
use std::slice;
77

88

99
#[deriving(Eq)]
@@ -139,7 +139,7 @@ impl<'a> SkipWhitespaceIterable<'a> for &'a [ComponentValue] {
139139

140140
#[deriving(Clone)]
141141
pub struct SkipWhitespaceIterator<'a> {
142-
iter_with_whitespace: vec::Items<'a, ComponentValue>,
142+
iter_with_whitespace: slice::Items<'a, ComponentValue>,
143143
}
144144

145145
impl<'a> Iterator<&'a ComponentValue> for SkipWhitespaceIterator<'a> {
@@ -163,7 +163,7 @@ impl MoveSkipWhitespaceIterable for ~[ComponentValue] {
163163
}
164164

165165
pub struct MoveSkipWhitespaceIterator {
166-
iter_with_whitespace: vec::MoveItems<ComponentValue>,
166+
iter_with_whitespace: slice::MoveItems<ComponentValue>,
167167
}
168168

169169
impl Iterator<ComponentValue> for MoveSkipWhitespaceIterator {

0 commit comments

Comments
 (0)