rust: clippy fixes 1.59
This commit is contained in:
parent
d8ee35e19c
commit
642fe5bb56
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue