Skip to content

Commit 680eed6

Browse files
jonhooweihanglo
andauthored
Update src/cargo/ops/cargo_install.rs
Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
1 parent db58bba commit 680eed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/cargo_install.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ impl<'cfg, 'a> InstallablePackage<'cfg, 'a> {
353353
//
354354
// Note that we know at this point that _if_ bins or examples is set to `::Just`,
355355
// they're `::Just([])`, which is `FilterRule::none()`.
356-
if self.pkg.targets().iter().any(|t| t.is_bin()) {
356+
if self.pkg.targets().iter().any(|t| t.is_executable()) {
357357
self.config
358358
.shell()
359359
.warn("none of the package's binaries are available for install using the selected features")?;

0 commit comments

Comments
 (0)