Skip to content

Commit

Permalink
expand: Minor fn ptr call cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Sep 28, 2020
1 parent 85ef265 commit 4a4a7f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/rustc_expand/src/base.rs
Expand Up @@ -312,7 +312,7 @@ where
ts: TokenStream,
) -> Result<TokenStream, ErrorReported> {
// FIXME setup implicit context in TLS before calling self.
Ok((*self)(ts))
Ok(self(ts))
}
}

Expand All @@ -338,7 +338,7 @@ where
annotated: TokenStream,
) -> Result<TokenStream, ErrorReported> {
// FIXME setup implicit context in TLS before calling self.
Ok((*self)(annotation, annotated))
Ok(self(annotation, annotated))
}
}

Expand All @@ -365,7 +365,7 @@ where
span: Span,
input: TokenStream,
) -> Box<dyn MacResult + 'cx> {
(*self)(ecx, span, input)
self(ecx, span, input)
}
}

Expand Down

0 comments on commit 4a4a7f8

Please sign in to comment.