Skip to content

Commit 04fcd4a

Browse files
author
Jonathan Woollett-Light
committed
fix: missing_debug_implementations
Denies `missing_debug_implementations`. Signed-off-by: Jonathan Woollett-Light <[email protected]>
1 parent bd7fb8e commit 04fcd4a

File tree

10 files changed

+20
-10
lines changed

10 files changed

+20
-10
lines changed

.cargo/config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ rustflags = [
55
"-Dclippy::ptr_as_ptr",
66
"-Dclippy::undocumented_unsafe_blocks",
77
"-Dclippy::cast_lossless",
8-
"-Dclippy::cast_sign_loss"
8+
"-Dclippy::cast_sign_loss",
9+
"-Dmissing_debug_implementations"
910
]
1011

1112
[net]

src/net_gen/src/if_tun.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
dead_code,
1010
non_snake_case,
1111
clippy::ptr_as_ptr,
12-
clippy::undocumented_unsafe_blocks
12+
clippy::undocumented_unsafe_blocks,
13+
missing_debug_implementations
1314
)]
1415

1516
pub const ETH_ALEN: u32 = 6;

src/net_gen/src/iff.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
dead_code,
1010
non_snake_case,
1111
clippy::ptr_as_ptr,
12-
clippy::undocumented_unsafe_blocks
12+
clippy::undocumented_unsafe_blocks,
13+
missing_debug_implementations
1314
)]
1415

1516
pub const IFNAMSIZ: u32 = 16;

src/net_gen/src/sockios.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
dead_code,
1010
non_snake_case,
1111
clippy::ptr_as_ptr,
12-
clippy::undocumented_unsafe_blocks
12+
clippy::undocumented_unsafe_blocks,
13+
missing_debug_implementations
1314
)]
1415

1516
pub const FIOSETOWN: u32 = 35073;

src/virtio_gen/src/virtio_blk.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
dead_code,
1010
non_snake_case,
1111
clippy::ptr_as_ptr,
12-
clippy::undocumented_unsafe_blocks
12+
clippy::undocumented_unsafe_blocks,
13+
missing_debug_implementations
1314
)]
1415

1516
pub const VIRTIO_F_NOTIFY_ON_EMPTY: u32 = 24;

src/virtio_gen/src/virtio_net.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
dead_code,
1010
non_snake_case,
1111
clippy::ptr_as_ptr,
12-
clippy::undocumented_unsafe_blocks
12+
clippy::undocumented_unsafe_blocks,
13+
missing_debug_implementations
1314
)]
1415

1516
pub const VIRTIO_F_NOTIFY_ON_EMPTY: u32 = 24;

src/virtio_gen/src/virtio_ring.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
dead_code,
1010
non_snake_case,
1111
clippy::ptr_as_ptr,
12-
clippy::undocumented_unsafe_blocks
12+
clippy::undocumented_unsafe_blocks,
13+
missing_debug_implementations
1314
)]
1415

1516
pub const VIRTIO_RING_F_EVENT_IDX: u32 = 29;

src/virtio_gen/src/virtio_rng.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
dead_code,
1010
non_snake_case,
1111
clippy::ptr_as_ptr,
12-
clippy::undocumented_unsafe_blocks
12+
clippy::undocumented_unsafe_blocks,
13+
missing_debug_implementations
1314
)]
1415

1516
pub const VIRTIO_F_NOTIFY_ON_EMPTY: u32 = 24;

src/vmm/src/io_uring/bindings.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
dead_code,
1010
non_snake_case,
1111
clippy::ptr_as_ptr,
12-
clippy::undocumented_unsafe_blocks
12+
clippy::undocumented_unsafe_blocks,
13+
missing_debug_implementations
1314
)]
1415

1516
#[repr(C)]

tools/bindgen.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ function fc-bindgen {
3333
non_snake_case,
3434
clippy::ptr_as_ptr,
3535
clippy::undocumented_unsafe_blocks,
36-
clippy::cast_lossless
36+
clippy::cast_lossless,
37+
missing_debug_implementations
3738
)]
3839
3940
EOF

0 commit comments

Comments
 (0)