Skip to content

Commit 05f3e83

Browse files
committed
Fix clippy reported issue
Fix a clippy reported issue where we checked the length of a string for zero instead of using the more idiomatic is_empty() helper method.
1 parent 749c0f0 commit 05f3e83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ext.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ext.rs
22

3-
// Copyright (C) 2020-2024 The Nitrocli Developers
3+
// Copyright (C) 2020-2025 The Nitrocli Developers
44
// SPDX-License-Identifier: GPL-3.0-or-later
55

66
use std::env;
@@ -39,7 +39,7 @@ impl Context {
3939
.context("NITROCLI_VERBOSITY environment variable not present")
4040
.context("Failed to retrieve nitrocli verbosity")?;
4141

42-
let verbosity = if verbosity.len() == 0 {
42+
let verbosity = if verbosity.is_empty() {
4343
None
4444
} else {
4545
let verbosity = verbosity

0 commit comments

Comments
 (0)