mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
don't clone types that are copy (clippy::clone_on_copy)
This commit is contained in:
parent
c5d654d513
commit
048dad8c2e
12 changed files with 18 additions and 28 deletions
|
@ -262,7 +262,7 @@ fn parse_repeat(src: &mut TtIter) -> Result<(Option<Separator>, RepeatKind), Par
|
|||
if puncts.len() == 3 {
|
||||
return Err(ParseError::InvalidRepeat);
|
||||
}
|
||||
puncts.push(punct.clone())
|
||||
puncts.push(*punct)
|
||||
}
|
||||
_ => return Err(ParseError::InvalidRepeat),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue