Skip to content

Commit 178daed

Browse files
sylvestreRenjiSann
authored andcommitted
fix a clippy warning
1 parent 663421c commit 178daed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uu/chroot/src/chroot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ struct Options {
5656
fn parse_userspec(spec: &str) -> UResult<UserSpec> {
5757
Ok(match spec.split_once(':') {
5858
// ""
59-
None if spec == "" => UserSpec::NeitherGroupNorUser,
59+
None if spec.is_empty() => UserSpec::NeitherGroupNorUser,
6060
// "usr"
6161
None => UserSpec::UserOnly(spec.to_string()),
6262
// ":"

0 commit comments

Comments
 (0)