Skip to content

Commit 82b81f3

Browse files
roypatzulinx86
authored andcommitted
fix: remove unneeded lint attributes
- Remove `warn` attributes if they are subsumed by `warn` attributes in a parent module (this happened a lot with `missing_docs` after we turned crates into submodules of `vmm`) - Remove `allow` attributes for lints we either do not warn on anyway, or where they would be duplicated. Signed-off-by: Patrick Roy <[email protected]>
1 parent bbf5d4b commit 82b81f3

File tree

10 files changed

+1
-18
lines changed

10 files changed

+1
-18
lines changed

src/firecracker/src/gen/prctl.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
non_snake_case,
1111
clippy::ptr_as_ptr,
1212
clippy::undocumented_unsafe_blocks,
13-
clippy::cast_lossless,
1413
missing_debug_implementations,
1514
clippy::tests_outside_test_module
1615
)]

src/vmm/src/arch/x86_64/gen/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77

88
pub mod hyperv;
99
pub mod hyperv_tlfs;
10-
#[allow(non_camel_case_types)]
11-
#[allow(non_upper_case_globals)]
1210
pub mod mpspec;
13-
#[allow(non_upper_case_globals)]
11+
1412
pub mod msr_index;
1513
pub mod perf_event;

src/vmm/src/arch/x86_64/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ pub mod msr;
1818
/// Logic for configuring x86_64 registers.
1919
pub mod regs;
2020

21-
#[allow(clippy::all)]
2221
#[allow(missing_docs)]
2322
pub mod gen;
2423

src/vmm/src/dumbo/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
#![warn(missing_docs)]
5-
64
//! Provides helper logic for parsing and writing protocol data units, and minimalist
75
//! implementations of a TCP listener, a TCP connection, and an HTTP/1.1 server.
86
pub mod pdu;

src/vmm/src/io_uring/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
#![warn(missing_docs)]
5-
64
#[allow(clippy::undocumented_unsafe_blocks)]
75
mod gen;
86
pub mod operation;

src/vmm/src/logger/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
#![warn(missing_docs)]
5-
64
//! Crate that implements Firecracker specific functionality as far as logging and metrics
75
//! collecting.
86

src/vmm/src/rate_limiter/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
#![warn(missing_docs)]
5-
64
use std::os::unix::io::{AsRawFd, RawFd};
75
use std::time::{Duration, Instant};
86
use std::{fmt, io};

src/vmm/src/snapshot/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
#![warn(missing_docs)]
5-
64
//! Provides serialization and deserialization facilities and implements a persistent storage
75
//! format for Firecracker state snapshots.
86
//!

src/vmm/tests/io_uring.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

4-
#![allow(clippy::undocumented_unsafe_blocks)]
5-
64
use std::os::unix::fs::FileExt;
75
use std::os::unix::io::AsRawFd;
86
use std::thread;

tools/bindgen.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ function fc-bindgen {
3333
non_snake_case,
3434
clippy::ptr_as_ptr,
3535
clippy::undocumented_unsafe_blocks,
36-
clippy::cast_lossless,
3736
missing_debug_implementations,
3837
clippy::tests_outside_test_module
3938
)]

0 commit comments

Comments
 (0)