From 0ee76da07b12fba38962634e65853d73adf9d4c0 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Fri, 13 May 2022 01:12:55 +0200 Subject: chore: update to rust 1.60.0 & update Cargo.lock (#14260) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk Co-authored-by: Aaron O'Mullan --- cli/tools/lint.rs | 2 +- cli/tools/repl/mod.rs | 2 +- cli/tools/repl/session.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli') diff --git a/cli/tools/lint.rs b/cli/tools/lint.rs index 4f5ad0fe8..f251dc647 100644 --- a/cli/tools/lint.rs +++ b/cli/tools/lint.rs @@ -508,7 +508,7 @@ impl LintReporter for JsonLintReporter { } } -fn sort_diagnostics(diagnostics: &mut Vec) { +fn sort_diagnostics(diagnostics: &mut [LintDiagnostic]) { // Sort so that we guarantee a deterministic output which is useful for tests diagnostics.sort_by(|a, b| { use std::cmp::Ordering; diff --git a/cli/tools/repl/mod.rs b/cli/tools/repl/mod.rs index f0964ec4d..7ca229ab3 100644 --- a/cli/tools/repl/mod.rs +++ b/cli/tools/repl/mod.rs @@ -133,7 +133,7 @@ pub async fn run( // We check for close and break here instead of making it a loop condition to get // consistent behavior in when the user evaluates a call to close(). - if repl_session.is_closing().await? { + if repl_session.closing().await? { break; } diff --git a/cli/tools/repl/session.rs b/cli/tools/repl/session.rs index d72fc9499..c256172e4 100644 --- a/cli/tools/repl/session.rs +++ b/cli/tools/repl/session.rs @@ -116,7 +116,7 @@ impl ReplSession { Ok(repl_session) } - pub async fn is_closing(&mut self) -> Result { + pub async fn closing(&mut self) -> Result { let closed = self .evaluate_expression("(this.closed)") .await? -- cgit v1.2.3