From 656b0225af410c9ad14dedad99707d5554bbf2f9 Mon Sep 17 00:00:00 2001 From: asonix Date: Tue, 27 Sep 2022 23:23:06 -0500 Subject: [PATCH] Clippy --- src/main.rs | 2 +- src/repo.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index c875a43..ed1f0ec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1151,7 +1151,7 @@ async fn main() -> color_eyre::Result<()> { init_tracing(&CONFIG.tracing)?; let repo = Repo::open(CONFIG.repo.clone())?; - repo.from_db(CONFIG.old_db.path.clone()).await?; + repo.migrate_from_db(CONFIG.old_db.path.clone()).await?; match (*OPERATION).clone() { Operation::Run => (), diff --git a/src/repo.rs b/src/repo.rs index 47fdcb6..68fb868 100644 --- a/src/repo.rs +++ b/src/repo.rs @@ -462,7 +462,7 @@ impl Repo { } } - pub(crate) async fn from_db(&self, path: PathBuf) -> color_eyre::Result<()> { + pub(crate) async fn migrate_from_db(&self, path: PathBuf) -> color_eyre::Result<()> { if self.has_migrated().await? { return Ok(()); }