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]
|
||||
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]
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue