Apply `cargo clippy`
@@ -150,7 +150,7 @@ fn flatten_args(args: PyTupleRef, vm: &VirtualMachine) -> PyTupleRef {
let mut flattened_args = Vec::with_capacity(total_args);
for arg in args.as_slice() {
if let Some(pyref) = arg.downcast_ref::<PyUnion>() {
- flattened_args.extend(pyref.args.as_slice().iter().map(|arg| arg.clone()));
+ flattened_args.extend(pyref.args.as_slice().iter().cloned());
} else {
flattened_args.push(arg.clone());
};
