chore: address clippy lints

This commit is contained in:
Rob Ede 2024-06-07 22:57:47 +01:00
parent ec0fe457de
commit 2291da9669
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ fn with_scope_inner(args: TokenStream, input: TokenStream) -> syn::Result<TokenS
let scope_prefix_value = scope_prefix.value();
if scope_prefix_value.ends_with("/") {
if scope_prefix_value.ends_with('/') {
// trailing slashes cause non-obvious problems
// it's better to point them out to developers rather than

View File

@ -1080,7 +1080,7 @@ mod resolver {
// resolver struct is cached in thread local so new clients can reuse the existing instance
thread_local! {
static TRUST_DNS_RESOLVER: RefCell<Option<Resolver>> = RefCell::new(None);
static TRUST_DNS_RESOLVER: RefCell<Option<Resolver>> = const { RefCell::new(None) };
}
// get from thread local or construct a new trust-dns resolver.

View File

@ -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]