Skip to content

Commit e1aa297

Browse files
committed
Apply clippy::redundant_pattern_matching suggestion
1 parent 95c06a2 commit e1aa297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ impl<T: ?Sized> Pointer for *const T {
20252025
if f.alternate() {
20262026
f.flags |= 1 << (FlagV1::SignAwareZeroPad as u32);
20272027

2028-
if let None = f.width {
2028+
if f.width.is_none() {
20292029
f.width = Some(((mem::size_of::<usize>() * 8) / 4) + 2);
20302030
}
20312031
}

0 commit comments

Comments
 (0)