summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-05-13 01:12:55 +0200
committerGitHub <noreply@github.com>2022-05-13 01:12:55 +0200
commit0ee76da07b12fba38962634e65853d73adf9d4c0 (patch)
tree49ab40c5662c0d8820c7973ff788139ad3c5e62c /cli
parent6fff813029b47c0ca9497aaba5920f8acf981772 (diff)
chore: update to rust 1.60.0 & update Cargo.lock (#14260)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com> Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
Diffstat (limited to 'cli')
-rw-r--r--cli/tools/lint.rs2
-rw-r--r--cli/tools/repl/mod.rs2
-rw-r--r--cli/tools/repl/session.rs2
3 files changed, 3 insertions, 3 deletions
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<LintDiagnostic>) {
+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<bool, AnyError> {
+ pub async fn closing(&mut self) -> Result<bool, AnyError> {
let closed = self
.evaluate_expression("(this.closed)")
.await?