diff --git a/rslib/src/collection/mod.rs b/rslib/src/collection/mod.rs index 6fcca58c5..51dbd1d30 100644 --- a/rslib/src/collection/mod.rs +++ b/rslib/src/collection/mod.rs @@ -6,7 +6,12 @@ pub(crate) mod timestamps; mod transact; pub(crate) mod undo; -use std::{collections::HashMap, path::PathBuf, sync::Arc}; +use std::{ + collections::HashMap, + fmt::{Debug, Formatter}, + path::PathBuf, + sync::Arc, +}; use crate::{ browser_table, @@ -117,6 +122,14 @@ pub struct Collection { pub(crate) state: CollectionState, } +impl Debug for Collection { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + f.debug_struct("Collection") + .field("col_path", &self.col_path) + .finish() + } +} + impl Collection { pub fn as_builder(&self) -> CollectionBuilder { let mut builder = CollectionBuilder::new(&self.col_path);