Skip to content

Commit

Permalink
Update src/cargo/ops/cargo_install.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
  • Loading branch information
jonhoo and weihanglo authored Apr 1, 2022
1 parent db58bba commit 680eed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo/ops/cargo_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl<'cfg, 'a> InstallablePackage<'cfg, 'a> {
//
// Note that we know at this point that _if_ bins or examples is set to `::Just`,
// they're `::Just([])`, which is `FilterRule::none()`.
if self.pkg.targets().iter().any(|t| t.is_bin()) {
if self.pkg.targets().iter().any(|t| t.is_executable()) {
self.config
.shell()
.warn("none of the package's binaries are available for install using the selected features")?;
Expand Down

0 comments on commit 680eed6

Please sign in to comment.