Skip to content

Commit

Permalink
Enable lint using rustflags hack
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeeter committed Sep 24, 2023
1 parent c4f87f8 commit 94edb60
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -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"]
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,3 @@ repair-client = { path = "./repair-client" }

[profile.dev]
panic = 'abort'

1 change: 0 additions & 1 deletion downstairs/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
1 change: 0 additions & 1 deletion integration_tests/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Copyright 2023 Oxide Computer Company
#![warn(clippy::unused_async)]

#[cfg(test)]
mod test {
Expand Down
1 change: 0 additions & 1 deletion pantry/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright 2022 Oxide Computer Company

#![warn(clippy::unused_async)]
use std::sync::Arc;

use anyhow::Result;
Expand Down
1 change: 0 additions & 1 deletion upstairs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 94edb60

Please sign in to comment.