Apply clippy::redundant_pattern_matching suggestion

This commit is contained in:
Mateusz Mikuła 2019-09-05 13:38:00 +02:00 committed by Mateusz Mikuła
parent 95c06a2970
commit e1aa297b8b

View file

@ -2025,7 +2025,7 @@ impl<T: ?Sized> Pointer for *const T {
if f.alternate() {
f.flags |= 1 << (FlagV1::SignAwareZeroPad as u32);
if let None = f.width {
if f.width.is_none() {
f.width = Some(((mem::size_of::<usize>() * 8) / 4) + 2);
}
}