Skip to content

Commit 8a8bb52

Browse files
committed
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`. Signed-off-by: Benno Lossin <benno.lossin@proton.me>
1 parent 186f19a commit 8a8bb52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)