Switch to Rust 2024 edition (#18129)

This commit is contained in:
Micha Reiser
2025-05-16 13:25:28 +02:00
committed by GitHub
parent e67b35743a
commit 9ae698fe30
1082 changed files with 4211 additions and 3300 deletions

View File

@@ -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;