diff --git a/datman/src/commands/backup.rs b/datman/src/commands/backup.rs index f679d0d..6407717 100644 --- a/datman/src/commands/backup.rs +++ b/datman/src/commands/backup.rs @@ -158,7 +158,10 @@ pub fn backup_source_to_destination( let pointer_name = get_pointer_name_at(&source_name, Utc::now()); if pile.read_pointer(pointer_name.as_str())?.is_some() { - bail!("Pointer by name {:?} already exists; refusing to overwrite.", pointer_name); + bail!( + "Pointer by name {:?} already exists; refusing to overwrite.", + pointer_name + ); } info!("Will write as pointer {:?}.", pointer_name); @@ -221,7 +224,10 @@ pub fn backup_source_to_destination( let pointer_name = get_pointer_name_at(&source_name, Utc::now()); if pile.read_pointer(pointer_name.as_str())?.is_some() { - bail!("Pointer by name {:?} already exists; refusing to overwrite.", pointer_name); + bail!( + "Pointer by name {:?} already exists; refusing to overwrite.", + pointer_name + ); } info!("Will write as pointer {:?}.", pointer_name); diff --git a/datman/src/remote/backup_source_requester.rs b/datman/src/remote/backup_source_requester.rs index 7165687..bd7ff21 100644 --- a/datman/src/remote/backup_source_requester.rs +++ b/datman/src/remote/backup_source_requester.rs @@ -183,7 +183,10 @@ pub fn backup_remote_source_to_destination let pointer_name = get_pointer_name_at(&source_name, Utc::now()); if pile.read_pointer(pointer_name.as_str())?.is_some() { - bail!("Pointer by name {:?} already exists; refusing to overwrite.", pointer_name); + bail!( + "Pointer by name {:?} already exists; refusing to overwrite.", + pointer_name + ); } info!("Will write as pointer {:?}.", pointer_name); diff --git a/yama/src/pile/local_sqlitebloblogs.rs b/yama/src/pile/local_sqlitebloblogs.rs index d9e74a3..6281f73 100644 --- a/yama/src/pile/local_sqlitebloblogs.rs +++ b/yama/src/pile/local_sqlitebloblogs.rs @@ -535,9 +535,7 @@ impl RawPile for SqliteBloblogPile { if inner.writers_in_progress > 0 { let _inner = self .writers_reach_zero - .wait_while(inner, |inner| { - inner.writers_in_progress != 0 - }) + .wait_while(inner, |inner| inner.writers_in_progress != 0) .unwrap(); }