Skip to content

Commit

Permalink
Remove clone.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Matlock committed Oct 21, 2024
1 parent fc8e146 commit 6275600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/mappingproxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ mod tests {
Python::with_gil(|py| {
let arr = [("a", 1), ("b", 2), ("c", 3)];

let dict = arr.clone().into_py_dict(py).unwrap();
let dict = arr.into_py_dict(py).unwrap();
let py_map = PyMappingProxy::new(py, dict.as_mapping());

assert_eq!(py_map.len().unwrap(), 3);
Expand Down

0 comments on commit 6275600

Please sign in to comment.