Skip to content

Commit

Permalink
clean up some more redundant imports flagged by nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Feb 22, 2024
1 parent 5c92c2e commit 6b19946
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/conversions/chrono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ fn timezone_utc_bound(py: Python<'_>) -> Bound<'_, PyAny> {
#[cfg(test)]
mod tests {
use super::*;
use crate::{types::PyTuple, Bound, Py};
use crate::{types::PyTuple, Py};
use std::{cmp::Ordering, panic};

#[test]
Expand Down
2 changes: 0 additions & 2 deletions src/conversions/chrono_tz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ impl FromPyObject<'_> for Tz {

#[cfg(all(test, not(windows)))] // Troubles loading timezones on Windows
mod tests {
use crate::{types::any::PyAnyMethods, Bound};

use super::*;

#[test]
Expand Down
5 changes: 1 addition & 4 deletions src/conversions/num_bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,7 @@ fn int_n_bits(long: &Bound<'_, PyLong>) -> PyResult<usize> {
#[cfg(test)]
mod tests {
use super::*;
use crate::{
types::{PyDict, PyModule},
Bound,
};
use crate::types::{PyDict, PyModule};
use indoc::indoc;

fn rust_fib<T>() -> impl Iterator<Item = T>
Expand Down
2 changes: 1 addition & 1 deletion src/conversions/num_complex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ complex_conversion!(f64);
#[cfg(test)]
mod tests {
use super::*;
use crate::types::{any::PyAnyMethods, complex::PyComplexMethods, PyModule};
use crate::types::{complex::PyComplexMethods, PyModule};

#[test]
fn from_complex() {
Expand Down

0 comments on commit 6b19946

Please sign in to comment.