Skip to content

Commit

Permalink
make unwrap_or_abort non-generic again
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed Jul 4, 2019
1 parent 3035a05 commit 3e362a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/lexer/mod.rs
Expand Up @@ -101,7 +101,7 @@ impl<'a> StringReader<'a> {
self.override_span.unwrap_or_else(|| Span::new(lo, hi, NO_EXPANSION))
}

fn unwrap_or_abort<T>(&mut self, res: Result<T, ()>) -> T {
fn unwrap_or_abort(&mut self, res: Result<Token, ()>) -> Token {
match res {
Ok(tok) => tok,
Err(_) => {
Expand Down

0 comments on commit 3e362a4

Please sign in to comment.