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: 0e28cbb895
Link: https://lore.kernel.org/all/20250414195928.129040-4-benno.lossin@proton.me
Signed-off-by: Benno Lossin <benno.lossin@proton.me>
This commit is contained in:
Benno Lossin 2025-04-14 20:00:31 +00:00
parent 5c4167b405
commit 39051adb07
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ mod pthread_mtx {
#[derive(Debug)]
pub enum Error {
#[expect(dead_code)]
#[allow(dead_code)]
IO(std::io::Error),
Alloc,
}