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:
Charlie Marsh 2023-07-12 17:09:27 -04:00 committed by GitHub
parent 6ce252f0ed
commit 6dbc6d2e59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 163 additions and 210 deletions

View file

@ -1,5 +1,7 @@
mod cursor;
mod newlines;
mod whitespace;
pub use cursor::*;
pub use newlines::*;
pub use whitespace::*;