Skip to content

Commit 18d1da7

Browse files
author
Yang Kaiyong
committed
chore: allow unexpected-cfgs to address clippy error
Add to allow unexpected-cfgs on async_io feature Signed-off-by: Yang Kaiyong <[email protected]>
1 parent 5603c65 commit 18d1da7

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Cargo.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,4 @@ targets = [
7373
"x86_64-unknown-linux-gnu",
7474
"aarch64-unknown-linux-gnu",
7575
"aarch64-apple-darwin",
76-
]
77-
78-
[lints.rust]
79-
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(testff)'] }
76+
]

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ build:
1515

1616
check: build
1717
${CARGO} fmt -- --check
18-
${CARGO} clippy ${TARGET} --features="fusedev" --no-default-features -- -Dwarnings
19-
${CARGO} clippy ${TARGET} --features="virtiofs" --no-default-features -- -Dwarnings
20-
${CARGO} clippy ${TARGET} --features="vhost-user-fs" --no-default-features -- -Dwarnings
21-
${CARGO} clippy ${TARGET} --features="fusedev,virtiofs" --no-default-features -- -Dwarnings
18+
${CARGO} clippy ${TARGET} --features="fusedev" --no-default-features -- -Dwarnings -A unexpected-cfgs
19+
${CARGO} clippy ${TARGET} --features="virtiofs" --no-default-features -- -Dwarnings -A unexpected-cfgs
20+
${CARGO} clippy ${TARGET} --features="vhost-user-fs" --no-default-features -- -Dwarnings -A unexpected-cfgs
21+
${CARGO} clippy ${TARGET} --features="fusedev,virtiofs" --no-default-features -- -Dwarnings -A unexpected-cfgs
2222

2323
test:
2424
${CARGO} test ${TARGET} --features="fusedev" --no-default-features -- --nocapture --skip integration

src/transport/virtiofs/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ mod async_io {
388388

389389
/// Disabled since vm-virtio doesn't export any DescriptorChain constructors.
390390
/// Should re-enable once it does.
391-
#[allow(unexpected_cfgs)]
392391
#[cfg(testff)]
393392
mod tests {
394393
use super::*;

0 commit comments

Comments
 (0)