diff --git a/src/directives.rs b/src/directives.rs index 6847eb898f..90e11fcdf1 100644 --- a/src/directives.rs +++ b/src/directives.rs @@ -113,7 +113,6 @@ pub fn extract_isort_exclusions(lxr: &[LexResult], locator: &SourceCodeLocator) #[cfg(test)] mod tests { - use anyhow::Result; use nohash_hasher::IntMap; use rustpython_parser::lexer; use rustpython_parser::lexer::LexResult; diff --git a/src/noqa.rs b/src/noqa.rs index dc7cf6a7fd..c8b4eda218 100644 --- a/src/noqa.rs +++ b/src/noqa.rs @@ -120,7 +120,6 @@ fn add_noqa_inner( #[cfg(test)] mod tests { - use anyhow::Result; use nohash_hasher::IntMap; use rustpython_parser::ast::Location;