File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 90
90
#![ deny(
91
91
anonymous_parameters,
92
92
clippy:: all,
93
+ clippy:: undocumented_unsafe_blocks,
93
94
const_err,
94
95
illegal_floating_point_literal_pattern,
95
96
late_bound_lifetime_arguments,
99
100
trivial_casts,
100
101
trivial_numeric_casts,
101
102
unreachable_pub,
102
- unsafe_code,
103
103
unsafe_op_in_unsafe_fn,
104
104
unused_extern_crates
105
105
) ]
Original file line number Diff line number Diff line change @@ -288,7 +288,6 @@ macro_rules! getters {
288
288
None
289
289
} else {
290
290
// SAFETY: We just checked if the field is present.
291
- #[ allow( unsafe_code) ]
292
291
Some ( unsafe { self . $name. assume_init( ) } )
293
292
}
294
293
}
@@ -330,7 +329,6 @@ impl Parsed {
330
329
None
331
330
} else {
332
331
// SAFETY: We just checked if the field is present.
333
- #[ allow( unsafe_code) ]
334
332
Some ( unsafe { self . offset_minute . assume_init ( ) } )
335
333
}
336
334
}
@@ -347,7 +345,6 @@ impl Parsed {
347
345
None
348
346
} else {
349
347
// SAFETY: We just checked if the field is present.
350
- #[ allow( unsafe_code) ]
351
348
Some ( unsafe { self . offset_second . assume_init ( ) } )
352
349
}
353
350
}
You can’t perform that action at this time.
0 commit comments