remove unnecessary uses of clone
This commit is contained in:
parent
f34356eace
commit
ee40a67cd9
7 changed files with 7 additions and 7 deletions
|
@ -114,7 +114,7 @@ impl Lit {
|
|||
if let NtExpr(expr) | NtLiteral(expr) = &**nt
|
||||
&& let ast::ExprKind::Lit(token_lit) = expr.kind =>
|
||||
{
|
||||
Some(token_lit.clone())
|
||||
Some(token_lit)
|
||||
}
|
||||
_ => None,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue