mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 22:01:47 +00:00
Use TokenKind
in doc_lines_from_tokens
(#11418)
## Summary This PR updates the `doc_lines_from_tokens` function to use `TokenKind` instead of `Tok`. This is part of #11401 ## Test Plan `cargo test`
This commit is contained in:
parent
025768d303
commit
a33763170e
2 changed files with 10 additions and 11 deletions
|
@ -93,7 +93,7 @@ pub fn check_path(
|
|||
let use_doc_lines = settings.rules.enabled(Rule::DocLineTooLong);
|
||||
let mut doc_lines = vec![];
|
||||
if use_doc_lines {
|
||||
doc_lines.extend(doc_lines_from_tokens(&tokens));
|
||||
doc_lines.extend(doc_lines_from_tokens(tokens.kinds()));
|
||||
}
|
||||
|
||||
// Run the token-based rules.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue