mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-20 11:21:14 +00:00
Clippy
This commit is contained in:
parent
dc4b482737
commit
656b0225af
2 changed files with 2 additions and 2 deletions
|
@ -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 => (),
|
||||
|
|
|
@ -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(());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue