mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-02 01:42:25 +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
|
@ -1256,7 +1256,7 @@ impl<'src> Lexer<'src> {
|
|||
// `IpyEscapeKind::Magic` and `IpyEscapeKind::Help` because of the initial `%` and `??`
|
||||
// tokens.
|
||||
if question_count > 2
|
||||
|| value.chars().last().map_or(true, is_python_whitespace)
|
||||
|| value.chars().last().is_none_or(is_python_whitespace)
|
||||
|| !matches!(self.cursor.first(), '\n' | '\r' | EOF_CHAR)
|
||||
{
|
||||
// Not a help end escape command, so continue with the lexing.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue