rust: clippy fixes 1.59

This commit is contained in:
David Hewitt 2022-02-24 20:17:05 +00:00
parent d8ee35e19c
commit 642fe5bb56
1 changed files with 1 additions and 2 deletions

View File

@ -675,10 +675,9 @@ mod tests {
// Acquiring GIL for the second time should be safe - see #864
let gil = Python::acquire_gil();
let py = gil.python();
let obj;
let gil2 = Python::acquire_gil();
obj = py.eval("object()", None, None).unwrap();
let obj = py.eval("object()", None, None).unwrap();
drop(gil2);
// After gil2 drops, obj should still have a reference count of one