diff --git a/src/manifest/target.rs b/src/manifest/target.rs index 9dc5fd9..b7e2679 100644 --- a/src/manifest/target.rs +++ b/src/manifest/target.rs @@ -72,24 +72,6 @@ impl TargetKind { TargetKind::Luau, ]; - /// Whether this target is compatible with another target - /// self is the project's target, dependency is the target of the dependency - pub fn is_compatible_with(&self, dependency: &Self) -> bool { - if self == dependency { - return true; - } - - match (self, dependency) { - #[cfg(all(feature = "lune", feature = "luau"))] - (TargetKind::Lune, TargetKind::Luau) => true, - - #[cfg(feature = "roblox")] - (TargetKind::RobloxServer, TargetKind::Roblox) => true, - - _ => false, - } - } - /// The folder to store packages in for this target /// self is the project's target, dependency is the target of the dependency pub fn packages_folder(&self, dependency: &Self) -> String { diff --git a/src/source/pesde/mod.rs b/src/source/pesde/mod.rs index 858e789..3dac8e0 100644 --- a/src/source/pesde/mod.rs +++ b/src/source/pesde/mod.rs @@ -219,9 +219,7 @@ impl PackageSource for PesdePackageSource { .into_iter() .filter(|(VersionId(version, target), _)| { specifier.version.matches(version) - && specifier - .target - .map_or(package_target.is_compatible_with(target), |t| t == *target) + && specifier.target.unwrap_or(package_target) == *target }) .map(|(id, entry)| { let version = id.version().clone();