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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user