From ac16dbb9eafc87fec1c64bd08306372e617f6abe Mon Sep 17 00:00:00 2001 From: Omer Tuchfeld Date: Mon, 9 Dec 2024 18:14:49 +0100 Subject: [PATCH] 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 --- ostree-ext/src/fixture.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ostree-ext/src/fixture.rs b/ostree-ext/src/fixture.rs index 752a0c4d..4048c241 100644 --- a/ostree-ext/src/fixture.rs +++ b/ostree-ext/src/fixture.rs @@ -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