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:
Carl Meyer
2025-02-26 06:12:43 -08:00
committed by GitHub
parent bf2c9a41cd
commit dd6f6233bd
47 changed files with 85 additions and 93 deletions

View File

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