mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-28 06:14:54 +00:00
Move shared_traits
to ruff_formatter
(#4632)
This commit is contained in:
parent
4233f6ec91
commit
edc6c4058f
24 changed files with 127 additions and 163 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue