Skip to content

Commit 33a361c

Browse files
authored
Merge pull request #954 from omertuc/clippylen
ostree-ext: test: fix clippy warning
2 parents af4d43f + c60a1fc commit 33a361c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ostree-ext/src/fixture.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ impl SeLabel {
244244
} else if rootdir == "boot" {
245245
SeLabel::Boot
246246
} else if rootdir == "etc" {
247-
if p.as_str().len() % 2 == 0 {
247+
// Arbitrarily give some files in /etc some label and others another
248+
if p.as_str().as_bytes().len() % 2 == 0 {
248249
SeLabel::Etc
249250
} else {
250251
SeLabel::EtcSystemConf

0 commit comments

Comments
 (0)