From 434a1d8ea99a19e2d23812c62d82bfcd52145e19 Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Tue, 11 Nov 2025 00:04:39 -0800 Subject: [PATCH] clippy lint --- bin/periphery/src/api/compose/helpers.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/periphery/src/api/compose/helpers.rs b/bin/periphery/src/api/compose/helpers.rs index 0150a0dbc..2ecba7717 100644 --- a/bin/periphery/src/api/compose/helpers.rs +++ b/bin/periphery/src/api/compose/helpers.rs @@ -65,9 +65,10 @@ pub fn env_file_args( let mut res = String::new(); // Add additional env files (except komodo's own, which comes last) - for file in additional_env_files.iter().filter(|f| { - env_file_path.map_or(true, |komodo_path| f.path.as_str() != komodo_path) - }) { + for file in additional_env_files + .iter() + .filter(|f| env_file_path != Some(f.path.as_str())) + { let path = &file.path; write!(res, " --env-file {path}").with_context(|| { format!("Failed to write --env-file arg for {path}")