Skip to content

Commit

Permalink
Inline is_binary_target
Browse files Browse the repository at this point in the history
Since it's only used once and its implementation is now trivial.
  • Loading branch information
edmorley committed Dec 10, 2024
1 parent 6ff3587 commit 87278e8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libcnb-package/src/cargo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 87278e8

Please sign in to comment.