diff --git a/actix-web-codegen/src/scope.rs b/actix-web-codegen/src/scope.rs index c64bcf8bf..067d95a60 100644 --- a/actix-web-codegen/src/scope.rs +++ b/actix-web-codegen/src/scope.rs @@ -31,7 +31,7 @@ fn with_scope_inner(args: TokenStream, input: TokenStream) -> syn::Result> = RefCell::new(None); + static TRUST_DNS_RESOLVER: RefCell> = const { RefCell::new(None) }; } // get from thread local or construct a new trust-dns resolver. diff --git a/justfile b/justfile index 655540b09..4e106ef11 100644 --- a/justfile +++ b/justfile @@ -4,7 +4,7 @@ _list: # Format workspace. fmt: cargo +nightly fmt - npx -y prettier --write $(fd --type=file --hidden --extension=md --extension=yml) + fd --hidden --type=file --extension=md --extension=yml --exec-batch npx -y prettier --write # Downgrade dev-dependencies necessary to run MSRV checks/tests. [private]