refactor: remove unnecessary variables
This commit is contained in:
parent
3955dc3480
commit
fea1c5f5c8
17 changed files with 93 additions and 108 deletions
|
@ -267,7 +267,8 @@ impl<'tcx> Cx<'tcx> {
|
|||
// When we apply adjustments to the receiver, use the span of
|
||||
// the overall method call for better diagnostics. args[0]
|
||||
// is guaranteed to exist, since a method call always has a receiver.
|
||||
let old_adjustment_span = self.adjustment_span.replace((receiver.hir_id, expr_span));
|
||||
let old_adjustment_span =
|
||||
self.adjustment_span.replace((receiver.hir_id, expr_span));
|
||||
info!("Using method span: {:?}", expr.span);
|
||||
let args = std::iter::once(receiver)
|
||||
.chain(args.iter())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue