Skip to content

Commit 4a4a7f8

Browse files
committed
expand: Minor fn ptr call cleanup
1 parent 85ef265 commit 4a4a7f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_expand/src/base.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ where
312312
ts: TokenStream,
313313
) -> Result<TokenStream, ErrorReported> {
314314
// FIXME setup implicit context in TLS before calling self.
315-
Ok((*self)(ts))
315+
Ok(self(ts))
316316
}
317317
}
318318

@@ -338,7 +338,7 @@ where
338338
annotated: TokenStream,
339339
) -> Result<TokenStream, ErrorReported> {
340340
// FIXME setup implicit context in TLS before calling self.
341-
Ok((*self)(annotation, annotated))
341+
Ok(self(annotation, annotated))
342342
}
343343
}
344344

@@ -365,7 +365,7 @@ where
365365
span: Span,
366366
input: TokenStream,
367367
) -> Box<dyn MacResult + 'cx> {
368-
(*self)(ecx, span, input)
368+
self(ecx, span, input)
369369
}
370370
}
371371

0 commit comments

Comments
 (0)