summaryrefslogtreecommitdiff
path: root/cli/tools/repl/mod.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-09-11 17:12:33 -0600
committerGitHub <noreply@github.com>2023-09-11 17:12:33 -0600
commitbfd230fd78ef7867eec75e6b21715f51e72e7a23 (patch)
tree82e608291c571f2ea6a2448ba935f35d7ce0c0f0 /cli/tools/repl/mod.rs
parentbdeb4bddbf5cabd04abe906388f5ebfe64a84c53 (diff)
chore: update inner #\![allow] to #[allow] (#20463)
Functions should generally be annotated with `#[allow]` blocks rather than using inner `#![allow]` annotations.
Diffstat (limited to 'cli/tools/repl/mod.rs')
-rw-r--r--cli/tools/repl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/repl/mod.rs b/cli/tools/repl/mod.rs
index 05c822e11..fb0891fa6 100644
--- a/cli/tools/repl/mod.rs
+++ b/cli/tools/repl/mod.rs
@@ -27,12 +27,12 @@ use editor::ReplEditor;
use session::EvaluationOutput;
use session::ReplSession;
+#[allow(clippy::await_holding_refcell_ref)]
async fn read_line_and_poll(
repl_session: &mut ReplSession,
message_handler: &mut RustylineSyncMessageHandler,
editor: ReplEditor,
) -> Result<String, ReadlineError> {
- #![allow(clippy::await_holding_refcell_ref)]
let mut line_fut = spawn_blocking(move || editor.readline());
let mut poll_worker = true;
let notifications_rc = repl_session.notifications.clone();