From 09b926fd59115afc8f47c191b86ad7c47c79889e Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 20 Sep 2022 09:10:39 -0400 Subject: [PATCH] Optimize imports --- src/check_lines.rs | 3 ++- src/printer.rs | 3 +-- src/python/typing.rs | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) 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",