Skip to content

Commit b520f96

Browse files
clippy
1 parent 90d9627 commit b520f96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ruff_linter/src/rules/pydoclint/rules/check_docstring.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use ruff_python_ast::helpers::{map_callable, map_subscript};
44
use ruff_python_ast::name::QualifiedName;
55
use ruff_python_ast::visitor::Visitor;
66
use ruff_python_ast::{self as ast, Expr, Stmt, visitor};
7-
use ruff_python_semantic::analyze::visibility::is_staticmethod;
87
use ruff_python_semantic::analyze::{function_type, visibility};
98
use ruff_python_semantic::{Definition, SemanticModel};
109
use ruff_source_file::NewlineWithTrailingNewline;
@@ -1098,7 +1097,7 @@ fn parameters_from_signature<'a>(docstring: &'a Docstring) -> Vec<&'a str> {
10981097
let Some(function) = docstring.definition.as_function_def() else {
10991098
return parameters;
11001099
};
1101-
for param in function.parameters.iter() {
1100+
for param in &function.parameters {
11021101
parameters.push(param.name());
11031102
}
11041103
parameters
@@ -1140,6 +1139,7 @@ pub(crate) fn check_docstring(
11401139
return;
11411140
}
11421141

1142+
println!("{:?}", section_contexts);
11431143
// Prioritize the specified convention over the determined style.
11441144
let docstring_sections = match convention {
11451145
Some(Convention::Google) => {

0 commit comments

Comments
 (0)