mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
Add Formatter benchmark (#4860)
This commit is contained in:
parent
8a3a269eef
commit
33434fcb9c
7 changed files with 76 additions and 10 deletions
|
@ -5,7 +5,6 @@ use ruff_formatter::{SourceCode, SourceCodeSlice};
|
|||
use ruff_python_ast::node::AnyNodeRef;
|
||||
use ruff_python_ast::prelude::*;
|
||||
use ruff_python_ast::source_code::{CommentRanges, Locator};
|
||||
use std::cell::Cell;
|
||||
// The interface is designed to only export the members relevant for iterating nodes in
|
||||
// pre-order.
|
||||
#[allow(clippy::wildcard_imports)]
|
||||
|
@ -418,7 +417,7 @@ impl From<DecoratedComment<'_>> for SourceComment {
|
|||
slice: decorated.slice,
|
||||
position: decorated.text_position,
|
||||
#[cfg(debug_assertions)]
|
||||
formatted: Cell::new(false),
|
||||
formatted: std::cell::Cell::new(false),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue