diff --git a/crates/ruff_linter/src/rules/ruff/rules/unused_async.rs b/crates/ruff_linter/src/rules/ruff/rules/unused_async.rs index 81f5c5ce80d1c..b3b78c2755447 100644 --- a/crates/ruff_linter/src/rules/ruff/rules/unused_async.rs +++ b/crates/ruff_linter/src/rules/ruff/rules/unused_async.rs @@ -1,5 +1,3 @@ -use crate::checkers::ast::Checker; -use crate::rules::fastapi::rules::is_fastapi_route; use ruff_diagnostics::{Diagnostic, Violation}; use ruff_macros::{derive_message_formats, violation}; use ruff_python_ast::identifier::Identifier; @@ -8,6 +6,9 @@ use ruff_python_ast::{self as ast, AnyNodeRef, Expr, Stmt}; use ruff_python_semantic::analyze::function_type::is_stub; use ruff_python_semantic::Modules; +use crate::checkers::ast::Checker; +use crate::rules::fastapi::rules::is_fastapi_route; + /// ## What it does /// Checks for functions declared `async` that do not await or otherwise use features requiring the /// function to be declared `async`.