Clean up ObjectStore's Debug impl

This commit is contained in:
Aode (lion) 2021-10-28 21:07:31 -05:00
parent 366db1e1fe
commit 76e3d37009
1 changed files with 11 additions and 1 deletions

View File

@ -39,7 +39,7 @@ pub(crate) enum ObjectError {
Anyhow(#[from] anyhow::Error), Anyhow(#[from] anyhow::Error),
} }
#[derive(Debug, Clone)] #[derive(Clone)]
pub(crate) struct ObjectStore { pub(crate) struct ObjectStore {
path_gen: Generator, path_gen: Generator,
settings_tree: sled::Tree, settings_tree: sled::Tree,
@ -230,3 +230,13 @@ where
}) })
} }
} }
impl std::fmt::Debug for ObjectStore {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("ObjectStore")
.field("path_gen", &self.path_gen)
.field("bucket", &self.bucket.name)
.field("region", &self.bucket.region)
.finish()
}
}