Skip to content

Commit 050bf45

Browse files
committed
Fixed the into_iter_on_ref clippy warning
1 parent 9144109 commit 050bf45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vm/src/obj/objmap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn map_new(vm: &mut VirtualMachine, args: PyFuncArgs) -> PyResult {
1414
let function = &args.args[1];
1515
let iterables = &args.args[2..];
1616
let iterators = iterables
17-
.into_iter()
17+
.iter()
1818
.map(|iterable| objiter::get_iter(vm, iterable))
1919
.collect::<Result<Vec<_>, _>>()?;
2020
Ok(PyObject::new(

0 commit comments

Comments
 (0)