From 87278e88fb23f8bc4bddaffea1e3cd04969a903f Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Tue, 10 Dec 2024 00:36:30 +0000 Subject: [PATCH] Inline `is_binary_target` Since it's only used once and its implementation is now trivial. --- libcnb-package/src/cargo.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libcnb-package/src/cargo.rs b/libcnb-package/src/cargo.rs index 140d7c33..65a83398 100644 --- a/libcnb-package/src/cargo.rs +++ b/libcnb-package/src/cargo.rs @@ -43,10 +43,6 @@ fn cargo_binary_target_names_from_root_package( root_package .targets .iter() - .filter_map(|target| is_binary_target(target).then_some(target.name.clone())) + .filter_map(|target| target.is_bin().then_some(target.name.clone())) .collect() } - -fn is_binary_target(target: &cargo_metadata::Target) -> bool { - target.is_bin() -}