Skip to content

Commit 1758f26

Browse files
authored
Update rust toolchain to 1.90 (#20469)
1 parent 2502ff7 commit 1758f26

5 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎crates/ruff_linter/src/rules/fastapi/rules/fastapi_unused_path_parameter.rs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,6 @@ impl<'a> Iterator for PathParamIterator<'a> {
487487
let param_name_end = param_content.find(':').unwrap_or(param_content.len());
488488
let param_name = &param_content[..param_name_end];
489489

490-
#[expect(clippy::range_plus_one)]
491490
return Some((param_name, start..end + 1));
492491
}
493492
}

‎crates/ruff_linter/src/rules/pycodestyle/rules/logical_lines/indentation.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub(crate) fn indentation(
269269
range: TextRange,
270270
context: &LintContext,
271271
) {
272-
if indent_level % indent_size != 0 {
272+
if !indent_level.is_multiple_of(indent_size) {
273273
if logical_line.is_comment_only() {
274274
context.report_diagnostic_if_enabled(
275275
IndentationWithInvalidMultipleComment {

‎crates/ruff_python_formatter/src/string/docstring.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ pub(super) fn needs_chaperone_space(
16131613
if is_no_chaperone_for_escaped_quote_in_triple_quoted_docstring_enabled(context) {
16141614
if flags.is_triple_quoted() {
16151615
if let Some(before_quote) = trim_end.strip_suffix(flags.quote_style().as_char()) {
1616-
if count_consecutive_chars_from_end(before_quote, '\\') % 2 == 0 {
1616+
if count_consecutive_chars_from_end(before_quote, '\\').is_multiple_of(2) {
16171617
// Even backslash count preceding quote;
16181618
// ```py
16191619
// """a " """

‎crates/ty_server/src/server/api/requests/workspace_diagnostic.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ impl ProgressReporter for WorkspaceDiagnosticsProgressReporter<'_> {
250250
fn report_checked_file(&self, db: &dyn Db, file: File, diagnostics: &[Diagnostic]) {
251251
let checked = self.checked_files.fetch_add(1, Ordering::Relaxed) + 1;
252252

253-
if checked % 100 == 0 || checked == self.total_files {
253+
if checked.is_multiple_of(100) || checked == self.total_files {
254254
// Report progress every 100 files or when all files are checked
255255
self.report_progress();
256256
}

‎rust-toolchain.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "1.89"
2+
channel = "1.90"

0 commit comments

Comments
 (0)