This commit is contained in:
Valter Santos 2025-01-10 17:26:27 +13:00 committed by sxyazi
parent 0dbce06a6e
commit 5e72032269
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -29,11 +29,11 @@ impl Dependency {
#[inline]
pub(super) fn deployed_directory(&self) -> PathBuf {
return if self.is_flavor {
if self.is_flavor {
Xdg::config_dir().join(format!("flavors/{}", self.name))
} else {
Xdg::config_dir().join(format!("plugins/{}", self.name))
};
}
}
#[inline]

View file

@ -185,7 +185,7 @@ impl Package {
#[inline]
fn find_dep_in_package(&self, dep: &Dependency) -> Option<&Dependency> {
return self.plugins.iter().chain(self.flavors.iter()).find(|d| d.use_ == dep.use_);
self.plugins.iter().chain(self.flavors.iter()).find(|d| d.use_ == dep.use_)
}
#[inline]