Skip to content

Commit

Permalink
Fix Asset::is_same_package comparison
Browse files Browse the repository at this point in the history
The function returned the inverse of what its name suggests. That is, it returned false for assets that are marked `SamePackage`. This causes cargo-deb to unnecessarily pass `--workspace` to cargo build, which affects feature resolution even if only a single target is built.
  • Loading branch information
TheJokr authored and kornelski committed Dec 17, 2024
1 parent f65204d commit 1eca6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ impl AssetCommon {
}

pub(crate) fn is_same_package(&self) -> bool {
self.is_built != IsBuilt::SamePackage
self.is_built == IsBuilt::SamePackage
}
}

Expand Down

0 comments on commit 1eca6e7

Please sign in to comment.