Apply clippy::redundant_pattern_matching suggestion
This commit is contained in:
parent
95c06a2970
commit
e1aa297b8b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue