File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -270,10 +270,9 @@ pub struct ArgumentV1<'a> {
270
270
/// of `format_args!(..)` and reduce the scope of the `unsafe` block.
271
271
#[ allow( missing_debug_implementations) ]
272
272
#[ doc( hidden) ]
273
+ #[ non_exhaustive]
273
274
#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
274
- pub struct UnsafeArg {
275
- _private : ( ) ,
276
- }
275
+ pub struct UnsafeArg ;
277
276
278
277
impl UnsafeArg {
279
278
/// See documentation where `UnsafeArg` is required to know when it is safe to
@@ -282,7 +281,7 @@ impl UnsafeArg {
282
281
#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
283
282
#[ inline( always) ]
284
283
pub unsafe fn new ( ) -> Self {
285
- Self { _private : ( ) }
284
+ Self
286
285
}
287
286
}
288
287
You can’t perform that action at this time.
0 commit comments