Skip to content

Commit 31abe0a

Browse files
committed
Address unused tuple struct fields in the standard library
1 parent 9f15a88 commit 31abe0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/boxed/thin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ 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-
struct WithOpaqueHeader(NonNull<u8>);
174+
struct WithOpaqueHeader(#[allow(unused_tuple_struct_fields)] NonNull<u8>);
175175

176176
impl WithOpaqueHeader {
177177
#[cfg(not(no_global_oom_handling))]

0 commit comments

Comments
 (0)