Skip to content

Commit

Permalink
fix lints about unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Sep 27, 2024
1 parent 77c35c6 commit b4a4e12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/types/weakref/anyref.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use crate::err::{DowncastError, PyResult};
use crate::err::PyResult;
use crate::ffi_ptr_ext::FfiPtrExt;
use crate::type_object::{PyTypeCheck, PyTypeInfo};
use crate::types::{
any::{PyAny, PyAnyMethods},
PyNone,
};
use crate::{ffi, Borrowed, Bound};
use crate::{ffi, Bound};

/// Represents any Python `weakref` reference.
///
Expand Down
2 changes: 1 addition & 1 deletion src/types/weakref/reference.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::err::PyResult;
use crate::ffi_ptr_ext::FfiPtrExt;
use crate::py_result_ext::PyResultExt;
use crate::types::{any::PyAny, PyNone};
use crate::{ffi, Borrowed, Bound, ToPyObject};
use crate::{ffi, Bound, ToPyObject};

#[cfg(any(PyPy, GraalPy, Py_LIMITED_API))]
use crate::type_object::PyTypeCheck;
Expand Down

0 comments on commit b4a4e12

Please sign in to comment.