Skip to content

Commit b6d5f45

Browse files
committed
Remove no-longer-needed allow(dead_code) from the standard library
`repr(transparent)` now silences the lint.
1 parent 2d35d75 commit b6d5f45

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

alloc/src/boxed/thin.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ struct WithHeader<H>(NonNull<u8>, PhantomData<H>);
171171
/// An opaque representation of `WithHeader<H>` to avoid the
172172
/// projection invariance of `<T as Pointee>::Metadata`.
173173
#[repr(transparent)]
174-
#[allow(dead_code)] // Field only used through `WithHeader` type above.
175174
struct WithOpaqueHeader(NonNull<u8>);
176175

177176
impl WithOpaqueHeader {

0 commit comments

Comments
 (0)