Move shared_traits to ruff_formatter (#4632)

This commit is contained in:
Micha Reiser 2023-05-24 17:38:11 +02:00 committed by GitHub
parent 4233f6ec91
commit edc6c4058f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 127 additions and 163 deletions

View file

@ -17,8 +17,10 @@ mod cst;
mod format;
mod newlines;
mod parentheses;
pub mod shared_traits;
pub mod trivia;
mod prelude;
mod trivia;
include!("../../ruff_formatter/shared_traits.rs");
pub fn fmt(contents: &str) -> Result<Formatted<ASTFormatContext>> {
// Create a reusable locator.
@ -179,7 +181,7 @@ mod tests {
#[test]
fn string_processing() {
use ruff_formatter::prelude::*;
use crate::prelude::*;
use ruff_formatter::{format, format_args, write};
struct FormatString<'a>(&'a str);