You've already forked platform-info
mirror of
https://github.com/uutils/platform-info.git
synced 2026-06-10 15:48:45 -07:00
clippy: fix len-zero
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user