Rollup merge of #56452 - sinkuu:redundant_clone, r=nikic
Remove redundant clones
This commit is contained in:
commit
4ff4fc1bc9
3 changed files with 4 additions and 4 deletions
|
|
@ -309,7 +309,7 @@ fn create_matches(len: usize) -> Box<[Rc<NamedMatchVec>]> {
|
|||
vec![]
|
||||
} else {
|
||||
let empty_matches = Rc::new(SmallVec::new());
|
||||
vec![empty_matches.clone(); len]
|
||||
vec![empty_matches; len]
|
||||
}.into_boxed_slice()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue