mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-08 09:30:27 +00:00
bump MSRV to 1.83 (#16294)
According to our new MSRV policy (see https://github.com/astral-sh/ruff/issues/16370 ), bump our MSRV to 1.83 (N - 2), and autofix some new clippy lints.
This commit is contained in:
parent
bf2c9a41cd
commit
dd6f6233bd
47 changed files with 85 additions and 93 deletions
|
@ -60,9 +60,9 @@ impl FormatNodeRule<ExprSlice> for FormatExprSlice {
|
|||
|
||||
// Handle spacing around the colon(s)
|
||||
// https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices
|
||||
let lower_simple = lower.as_ref().map_or(true, |expr| is_simple_expr(expr));
|
||||
let upper_simple = upper.as_ref().map_or(true, |expr| is_simple_expr(expr));
|
||||
let step_simple = step.as_ref().map_or(true, |expr| is_simple_expr(expr));
|
||||
let lower_simple = lower.as_ref().is_none_or(|expr| is_simple_expr(expr));
|
||||
let upper_simple = upper.as_ref().is_none_or(|expr| is_simple_expr(expr));
|
||||
let step_simple = step.as_ref().is_none_or(|expr| is_simple_expr(expr));
|
||||
let all_simple = lower_simple && upper_simple && step_simple;
|
||||
|
||||
// lower
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue