diff --git a/src/check_lines.rs b/src/check_lines.rs index fc053953ca..d2cd822643 100644 --- a/src/check_lines.rs +++ b/src/check_lines.rs @@ -56,9 +56,10 @@ pub fn check_lines(checks: &mut Vec, contents: &str, settings: &Settings) #[cfg(test)] mod tests { + use std::collections::BTreeSet; + use super::check_lines; use super::*; - use std::collections::BTreeSet; #[test] fn e501_non_ascii_char() { diff --git a/src/printer.rs b/src/printer.rs index 625be3747c..7a5ca31b2e 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -1,7 +1,6 @@ -use colored::Colorize; - use anyhow::Result; use clap::ValueEnum; +use colored::Colorize; use crate::message::Message; use crate::tell_user; diff --git a/src/python/typing.rs b/src/python/typing.rs index 82fb93e1d5..7ea9d464ff 100644 --- a/src/python/typing.rs +++ b/src/python/typing.rs @@ -1,6 +1,7 @@ -use once_cell::sync::Lazy; use std::collections::BTreeSet; +use once_cell::sync::Lazy; + static ANNOTATED_SUBSCRIPTS: Lazy> = Lazy::new(|| { BTreeSet::from([ "AbstractAsyncContextManager",