diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-24 10:00:25 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-25 22:08:09 -0800 |
| commit | f3965829ffd1e2eb4e2b8c4c8f151379f504ed7f (patch) | |
| tree | 0bb5b202bc8e8b8af120c2bfdc92867c8a9afea0 /src/libsyntax/parse/token.rs | |
| parent | 4650da5888427b60c6d38308bcdd76da40f1b181 (diff) | |
| download | rust-f3965829ffd1e2eb4e2b8c4c8f151379f504ed7f.tar.gz rust-f3965829ffd1e2eb4e2b8c4c8f151379f504ed7f.zip | |
libsyntax: change flip_delimiter to take a &token::Token
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index f145e433fa7..8e88ac1d525 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -257,8 +257,8 @@ pub pure fn can_begin_expr(t: Token) -> bool { } /// what's the opposite delimiter? -pub fn flip_delimiter(t: token::Token) -> token::Token { - match t { +pub fn flip_delimiter(t: &token::Token) -> token::Token { + match *t { token::LPAREN => token::RPAREN, token::LBRACE => token::RBRACE, token::LBRACKET => token::RBRACKET, |
