Skip to content

Commit

Permalink
remove unnecessary clone
Browse files Browse the repository at this point in the history
Co-authored-by: David Hewitt <[email protected]>
  • Loading branch information
Icxolu and davidhewitt authored Oct 1, 2024
1 parent e2e4f45 commit 4a3ac02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conversions/indexmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ mod test_indexmap {
}
}

let py_map = map.clone().into_py_dict(py).unwrap();
let py_map = (&map).into_py_dict(py).unwrap();

let trip_map = py_map.extract::<indexmap::IndexMap<i32, i32>>().unwrap();

Expand Down

0 comments on commit 4a3ac02

Please sign in to comment.