Fixed some clippy lints due to recent update.

This commit is contained in:
Filipe Rodrigues 2022-11-20 07:02:38 +00:00
parent 982e214f59
commit df8de139ad
2 changed files with 5 additions and 4 deletions

View File

@ -12,7 +12,7 @@ deny = [
"unsafe_op_in_unsafe_fn",
# We muse use `expect` instead
"clippy::unwrap_used"
"clippy::unwrap_used",
]
allow = [
@ -20,8 +20,9 @@ allow = [
"clippy::implicit_return",
"clippy::multiple_inherent_impl",
"clippy::pattern_type_mismatch",
"clippy::match_bool", # `match` reads easier than `if / else`
"clippy::match_bool", # `match` reads easier than `if / else`
"clippy::single_match_else",
"clippy::option_if_let_else",
"clippy::self_named_module_files",
"clippy::items_after_statements",
"clippy::module_name_repetitions",
@ -58,4 +59,4 @@ allow = [
# Triggers on `T: B + C` if `trait B: A` and `trait C: A`.
# TODO: Turn back on once false positives are fixed
"clippy::trait_duplication_in_bounds",
]
]

View File

@ -66,7 +66,7 @@ fn main() -> Result<(), anyhow::Error> {
.thread_name_fn(|| {
static NEXT_ID: AtomicUsize = AtomicUsize::new(0);
let id = NEXT_ID.fetch_add(1, atomic::Ordering::AcqRel);
format!("tokio-runtime-{}", id)
format!("tokio-runtime-{id}")
})
.build()
.context("Unable to create runtime")?;