Skip to content

Commit

Permalink
Merge pull request #2184 from davidhewitt/rust-1.59
Browse files Browse the repository at this point in the history
rust: clippy fixes 1.59
  • Loading branch information
davidhewitt committed Feb 24, 2022
2 parents f379854 + 642fe5b commit 3d7080b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gil.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3d7080b

Please sign in to comment.