1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 15:45:53 +01:00

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 <omer@tuchfeld.dev>
This commit is contained in:
Omer Tuchfeld
2024-12-09 18:14:49 +01:00
parent af4d43f93c
commit ac16dbb9ea

View File

@@ -244,7 +244,7 @@ impl SeLabel {
} else if rootdir == "boot" {
SeLabel::Boot
} else if rootdir == "etc" {
if p.as_str().len() % 2 == 0 {
if p.as_str().as_bytes().len() % 2 == 0 {
SeLabel::Etc
} else {
SeLabel::EtcSystemConf