diff --git a/src/docstrings/numpy.rs b/src/docstrings/numpy.rs index 5719fe72ee..f8aefe723c 100644 --- a/src/docstrings/numpy.rs +++ b/src/docstrings/numpy.rs @@ -1,5 +1,9 @@ //! Abstractions for NumPy-style docstrings. +use std::collections::BTreeSet; + +use once_cell::sync::Lazy; + use crate::check_ast::Checker; use crate::checks::{Check, CheckCode, CheckKind}; use crate::docstrings::helpers::range_for; @@ -7,8 +11,6 @@ use crate::docstrings::sections::SectionContext; use crate::docstrings::styles::SectionStyle; use crate::docstrings::types::Definition; use crate::docstrings::{helpers, sections}; -use once_cell::sync::Lazy; -use std::collections::BTreeSet; pub(crate) static LOWERCASE_NUMPY_SECTION_NAMES: Lazy> = Lazy::new(|| { BTreeSet::from([ diff --git a/src/lib.rs b/src/lib.rs index 0b202f6e36..305f240a01 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::collapsible_if, clippy::collapsible_else_if)] + use std::path::Path; use anyhow::Result;