summaryrefslogtreecommitdiff
path: root/cli/tools
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tools')
-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?