Clippy; remove forgotten dbg! (#4338)

This commit is contained in:
Hocuri
2023-04-18 20:52:01 +02:00
committed by GitHub
parent 903633f422
commit a806a218bf
3 changed files with 3 additions and 4 deletions

View File

@@ -103,7 +103,7 @@ impl BackupProvider {
let context_dir = context
.get_blobdir()
.parent()
.ok_or(anyhow!("Context dir not found"))?;
.ok_or_else(|| anyhow!("Context dir not found"))?;
let dbfile = context_dir.join(DBFILE_BACKUP_NAME);
if fs::metadata(&dbfile).await.is_ok() {
fs::remove_file(&dbfile).await?;
@@ -497,7 +497,7 @@ async fn on_blob(
let context_dir = context
.get_blobdir()
.parent()
.ok_or(anyhow!("Context dir not found"))?;
.ok_or_else(|| anyhow!("Context dir not found"))?;
let dbfile = context_dir.join(DBFILE_BACKUP_NAME);
if fs::metadata(&dbfile).await.is_ok() {
fs::remove_file(&dbfile).await?;