mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
chore: use owned type for DependencyType
Co-authored-by: dai <contact@daimond113.com>
This commit is contained in:
parent
c0a2f24fde
commit
59442c783f
1 changed files with 2 additions and 1 deletions
|
@ -75,8 +75,9 @@ pub enum InstallDependenciesMode {
|
||||||
/// Install only dev_dependencies.
|
/// Install only dev_dependencies.
|
||||||
Dev,
|
Dev,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl InstallDependenciesMode {
|
impl InstallDependenciesMode {
|
||||||
fn fits(&self, dep_ty: &DependencyType) -> bool {
|
fn fits(&self, dep_ty: DependencyType) -> bool {
|
||||||
match (self, dep_ty) {
|
match (self, dep_ty) {
|
||||||
(InstallDependenciesMode::All, _) => true,
|
(InstallDependenciesMode::All, _) => true,
|
||||||
(InstallDependenciesMode::Prod, DependencyType::Standard) => true,
|
(InstallDependenciesMode::Prod, DependencyType::Standard) => true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue