Skip to content

Update to latest Rust #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ impl ToStr for SyntaxError {


pub trait SkipWhitespaceIterable<'self> {
pub fn skip_whitespace(self) -> SkipWhitespaceIterator<'self>;
fn skip_whitespace(self) -> SkipWhitespaceIterator<'self>;
}

impl<'self> SkipWhitespaceIterable<'self> for &'self [ComponentValue] {
pub fn skip_whitespace(self) -> SkipWhitespaceIterator<'self> {
fn skip_whitespace(self) -> SkipWhitespaceIterator<'self> {
SkipWhitespaceIterator{ iter_with_whitespace: self.iter() }
}
}
Expand All @@ -153,11 +153,11 @@ impl<'self> Iterator<&'self ComponentValue> for SkipWhitespaceIterator<'self> {


pub trait MoveSkipWhitespaceIterable {
pub fn move_skip_whitespace(self) -> MoveSkipWhitespaceIterator;
fn move_skip_whitespace(self) -> MoveSkipWhitespaceIterator;
}

impl MoveSkipWhitespaceIterable for ~[ComponentValue] {
pub fn move_skip_whitespace(self) -> MoveSkipWhitespaceIterator {
fn move_skip_whitespace(self) -> MoveSkipWhitespaceIterator {
MoveSkipWhitespaceIterator{ iter_with_whitespace: self.move_iter() }
}
}
Expand Down
2 changes: 1 addition & 1 deletion tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub fn tokenize(input: &str) -> Tokenizer {

impl Iterator<Node> for Tokenizer {
#[inline]
pub fn next(&mut self) -> Option<Node> { next_component_value(self) }
fn next(&mut self) -> Option<Node> { next_component_value(self) }
}


Expand Down