2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00
This commit is contained in:
asonix 2023-09-30 22:47:49 -05:00
parent d2745c4cd5
commit 8568ae3364

View file

@ -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,
}) })