mirror of
https://github.com/Zenithsiz/zsw.git
synced 2026-02-03 17:52:15 +00:00
Fixed some clippy lints due to recent update.
This commit is contained in:
parent
982e214f59
commit
df8de139ad
@ -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",
|
||||
]
|
||||
]
|
||||
|
||||
@ -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")?;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user