Skip to content

Commit ac16dbb

Browse files
committed
ostree-ext: test: fix clippy warning
My clippy is complaining about `len()` being disallowed method. No harm in changing this. Signed-off-by: Omer Tuchfeld <[email protected]>
1 parent af4d43f commit ac16dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ostree-ext/src/fixture.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl SeLabel {
244244
} else if rootdir == "boot" {
245245
SeLabel::Boot
246246
} else if rootdir == "etc" {
247-
if p.as_str().len() % 2 == 0 {
247+
if p.as_str().as_bytes().len() % 2 == 0 {
248248
SeLabel::Etc
249249
} else {
250250
SeLabel::EtcSystemConf

0 commit comments

Comments
 (0)