Add Debug impl for Collection
This commit is contained in:
parent
a82f8d6872
commit
a38121a713
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user