mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:56 +00:00
Switch to Rust 2024 edition (#18129)
This commit is contained in:
parent
e67b35743a
commit
9ae698fe30
1082 changed files with 4211 additions and 3300 deletions
|
@ -2,8 +2,8 @@ use crate::normalizer::Normalizer;
|
|||
use itertools::Itertools;
|
||||
use ruff_formatter::FormatOptions;
|
||||
use ruff_python_ast::comparable::ComparableMod;
|
||||
use ruff_python_formatter::{format_module_source, format_range, PreviewMode, PyFormatOptions};
|
||||
use ruff_python_parser::{parse, ParseOptions, UnsupportedSyntaxError};
|
||||
use ruff_python_formatter::{PreviewMode, PyFormatOptions, format_module_source, format_range};
|
||||
use ruff_python_parser::{ParseOptions, UnsupportedSyntaxError, parse};
|
||||
use ruff_source_file::{LineIndex, OneIndexed};
|
||||
use ruff_text_size::{Ranged, TextRange, TextSize};
|
||||
use rustc_hash::FxHashMap;
|
||||
|
|
|
@ -9,7 +9,7 @@ use ruff_python_ast::{
|
|||
self as ast, BytesLiteralFlags, Expr, FStringElement, FStringFlags, FStringLiteralElement,
|
||||
FStringPart, Stmt, StringFlags,
|
||||
};
|
||||
use ruff_python_ast::{visitor::transformer, StringLiteralFlags};
|
||||
use ruff_python_ast::{StringLiteralFlags, visitor::transformer};
|
||||
use ruff_text_size::{Ranged, TextRange};
|
||||
|
||||
/// A struct to normalize AST nodes for the purpose of comparing formatted representations for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue