fix: Deno.emit crashes with BorrowMutError (#12627)

Warn on await_holding_refcell_ref clippy rule to avoid this in the future.

Fixes #12453
This commit is contained in:
Ryan Dahl 2021-11-03 09:27:36 -04:00 committed by GitHub
parent 95b2955712
commit 7c2abb9d57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 47 additions and 7 deletions

View file

@ -109,7 +109,14 @@ async function clippy() {
}
const p = Deno.run({
cmd: [...cmd, "--", "-D", "clippy::all"],
cmd: [
...cmd,
"--",
"-D",
"clippy::all",
"-D",
"clippy::await_holding_refcell_ref",
],
});
const { success } = await p.status();
if (!success) {