Use .as_ref() in lieu of &** (#5874)

I find this less opaque (and often more succinct).
This commit is contained in:
Charlie Marsh
2023-07-18 20:49:13 -04:00
committed by GitHub
parent 7ffcd93afd
commit 626d8dc2cc
7 changed files with 17 additions and 21 deletions

View File

@@ -1156,7 +1156,7 @@ impl<'a> Generator<'a> {
range: _range,
})],
[],
) = (&**args, &**keywords)
) = (args.as_slice(), keywords.as_slice())
{
// Ensure that a single generator doesn't get double-parenthesized.
self.unparse_expr(elt, precedence::COMMA);