mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
clippy
This commit is contained in:
parent
0dbce06a6e
commit
5e72032269
2 changed files with 3 additions and 3 deletions
|
|
@ -29,11 +29,11 @@ impl Dependency {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub(super) fn deployed_directory(&self) -> PathBuf {
|
pub(super) fn deployed_directory(&self) -> PathBuf {
|
||||||
return if self.is_flavor {
|
if self.is_flavor {
|
||||||
Xdg::config_dir().join(format!("flavors/{}", self.name))
|
Xdg::config_dir().join(format!("flavors/{}", self.name))
|
||||||
} else {
|
} else {
|
||||||
Xdg::config_dir().join(format!("plugins/{}", self.name))
|
Xdg::config_dir().join(format!("plugins/{}", self.name))
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ impl Package {
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn find_dep_in_package(&self, dep: &Dependency) -> Option<&Dependency> {
|
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]
|
#[inline]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue