mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 17:10:53 +00:00
Use shared Cursor
across crates (#5715)
## Summary We have two `Cursor` implementations. This PR moves the implementation from the formatter into `ruff_python_whitespace` (kind of a poorly-named crate now) and uses it for both use-cases.
This commit is contained in:
parent
6ce252f0ed
commit
6dbc6d2e59
6 changed files with 163 additions and 210 deletions
|
@ -1,5 +1,7 @@
|
|||
mod cursor;
|
||||
mod newlines;
|
||||
mod whitespace;
|
||||
|
||||
pub use cursor::*;
|
||||
pub use newlines::*;
|
||||
pub use whitespace::*;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue