diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 000000000..be0f6d2ad --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,6 @@ +[build] +# Workaround to enable this lint for all packages in the workspace +# +# Once https://github.com/rust-lang/cargo/issues/12115 makes it to our +# toolchain, we'll be able to put this in the `Cargo.toml` manifest instead. +rustflags = ["-Wclippy::unused-async"] diff --git a/Cargo.toml b/Cargo.toml index 6d30e7d95..8e0a2f16b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -124,4 +124,3 @@ repair-client = { path = "./repair-client" } [profile.dev] panic = 'abort' - diff --git a/downstairs/src/lib.rs b/downstairs/src/lib.rs index d7d453064..0f0d8706b 100644 --- a/downstairs/src/lib.rs +++ b/downstairs/src/lib.rs @@ -1,7 +1,6 @@ // Copyright 2023 Oxide Computer Company #![cfg_attr(usdt_need_asm, feature(asm))] #![cfg_attr(all(target_os = "macos", usdt_need_asm_sym), feature(asm_sym))] -#![warn(clippy::unused_async)] use futures::executor; use futures::lock::{Mutex, MutexGuard}; diff --git a/integration_tests/src/lib.rs b/integration_tests/src/lib.rs index 2d083135b..9437bf6f5 100644 --- a/integration_tests/src/lib.rs +++ b/integration_tests/src/lib.rs @@ -1,5 +1,4 @@ // Copyright 2023 Oxide Computer Company -#![warn(clippy::unused_async)] #[cfg(test)] mod test { diff --git a/pantry/src/lib.rs b/pantry/src/lib.rs index aa30507f5..814b2af79 100644 --- a/pantry/src/lib.rs +++ b/pantry/src/lib.rs @@ -1,6 +1,5 @@ // Copyright 2022 Oxide Computer Company -#![warn(clippy::unused_async)] use std::sync::Arc; use anyhow::Result; diff --git a/upstairs/src/lib.rs b/upstairs/src/lib.rs index f30dc2f91..4dff50237 100644 --- a/upstairs/src/lib.rs +++ b/upstairs/src/lib.rs @@ -2,7 +2,6 @@ #![cfg_attr(usdt_need_asm, feature(asm))] #![cfg_attr(all(target_os = "macos", usdt_need_asm_sym), feature(asm_sym))] #![allow(clippy::mutex_atomic)] -#![warn(clippy::unused_async)] use std::clone::Clone; use std::collections::{BTreeSet, HashMap, HashSet, VecDeque};