NFC: do not clone types that are copy
This commit is contained in:
parent
a96d57bdb6
commit
74d81d15b4
5 changed files with 6 additions and 6 deletions
|
@ -923,7 +923,7 @@ impl ConstructorSet {
|
|||
}
|
||||
ConstructorSet::Integers { range_1, range_2 } => {
|
||||
let seen_ranges: Vec<_> =
|
||||
seen.iter().map(|ctor| ctor.as_int_range().unwrap().clone()).collect();
|
||||
seen.iter().map(|ctor| *ctor.as_int_range().unwrap()).collect();
|
||||
for (seen, splitted_range) in range_1.split(seen_ranges.iter().cloned()) {
|
||||
match seen {
|
||||
Presence::Unseen => missing.push(IntRange(splitted_range)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue