clippy: fix len-zero

This commit is contained in:
Sylvestre Ledru
2021-11-28 14:24:09 +01:00
parent 2c36585126
commit 3192071a44
+1 -1
View File
@@ -286,7 +286,7 @@ impl PlatformInfo {
};
// we're doing this down here so we don't have to copy this into multiple branches
if name.len() == 0 {
if name.is_empty() {
name = if product_type == VER_NT_WORKSTATION {
"Windows"
} else {