mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2024-11-28 20:41:00 +00:00
Clippy
This commit is contained in:
parent
d2745c4cd5
commit
8568ae3364
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ pub(crate) struct ConfigFile {
|
||||||
|
|
||||||
impl ConfigFile {
|
impl ConfigFile {
|
||||||
pub(crate) fn old_repo_path(&self) -> Option<&PathBuf> {
|
pub(crate) fn old_repo_path(&self) -> Option<&PathBuf> {
|
||||||
self.old_repo.path.as_ref().or_else(|| match self.repo {
|
self.old_repo.path.as_ref().or(match self.repo {
|
||||||
Repo::Sled(ref sled) => Some(&sled.path),
|
Repo::Sled(ref sled) => Some(&sled.path),
|
||||||
_ => None,
|
_ => None,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue