make unwrap_or_abort non-generic again

This commit is contained in:
Aleksey Kladov 2019-07-03 15:31:59 +03:00
parent 3035a05a74
commit 3e362a4800
1 changed files with 1 additions and 1 deletions

View File

@ -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(_) => {