mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-15 08:00:19 +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
|
@ -1070,12 +1070,14 @@ impl<'a> Generator<'a> {
|
|||
self.unparse_expr(func, precedence::MAX);
|
||||
self.p("(");
|
||||
if let (
|
||||
[Expr::Generator(ast::ExprGenerator {
|
||||
elt,
|
||||
generators,
|
||||
range: _,
|
||||
parenthesized: _,
|
||||
})],
|
||||
[
|
||||
Expr::Generator(ast::ExprGenerator {
|
||||
elt,
|
||||
generators,
|
||||
range: _,
|
||||
parenthesized: _,
|
||||
}),
|
||||
],
|
||||
[],
|
||||
) = (arguments.args.as_ref(), arguments.keywords.as_ref())
|
||||
{
|
||||
|
@ -1435,7 +1437,7 @@ impl<'a> Generator<'a> {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use ruff_python_ast::{Mod, ModModule};
|
||||
use ruff_python_parser::{self, parse_module, Mode, ParseOptions};
|
||||
use ruff_python_parser::{self, Mode, ParseOptions, parse_module};
|
||||
use ruff_source_file::LineEnding;
|
||||
|
||||
use crate::stylist::Indentation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue