2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-11-10 06:25:00 +00:00

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

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()
}
}