Skip to content

Commit 39051ad

Browse files
committed
rust: pin-init: examples: use allow instead of expect
Rust 1.78 doesn't emit a `dead_code` error on the annotated element, resulting in the `unfulfilled_lint_expectations` error. Rust 1.85 does emit the `dead_code` error, so we still need an `allow`. Link: Rust-for-Linux/pin-init@0e28cbb Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Benno Lossin <[email protected]>
1 parent 5c4167b commit 39051ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/pin-init/examples/pthread_mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ mod pthread_mtx {
4242

4343
#[derive(Debug)]
4444
pub enum Error {
45-
#[expect(dead_code)]
45+
#[allow(dead_code)]
4646
IO(std::io::Error),
4747
Alloc,
4848
}

0 commit comments

Comments
 (0)