Skip to content

Commit 110bf30

Browse files
committed
Use backward-compatible macro syntax.
1 parent d405f03 commit 110bf30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/parser.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ pub fn parse_one_component_value<T: Iterator<Node>>(mut iter: T)
106106

107107
// Work around "error: cannot borrow `*iter` as mutable more than once at a time"
108108
// when using a normal for loop.
109-
macro_rules! for_iter(
109+
macro_rules! for_iter {
110110
($iter: ident, $pattern: pat, $loop_body: expr) => (
111111
loop {
112112
match $iter.next() { None => break, Some($pattern) => $loop_body }
113113
}
114114
);
115-
);
115+
}
116116

117117

118118
impl<T: Iterator<Node>> Iterator<Result<Rule, SyntaxError>> for StylesheetParser<T> {

src/tokenizer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ impl Tokenizer {
123123
}
124124
}
125125

126-
macro_rules! is_match(
126+
macro_rules! is_match {
127127
($value:expr, $($pattern:pat)|+) => (
128128
match $value { $($pattern)|+ => true, _ => false }
129129
);
130-
);
130+
}
131131

132132

133133
fn next_component_value(tokenizer: &mut Tokenizer) -> Option<Node> {

0 commit comments

Comments
 (0)