feat: Output more informations from the examples on document injection

This commit is contained in:
Clément Renault
2019-05-21 13:27:55 +02:00
parent 788fae59a1
commit 5040095228
3 changed files with 20 additions and 2 deletions

View File

@ -37,7 +37,8 @@ pub struct Database {
impl Database {
pub fn start_default<P: AsRef<Path>>(path: P) -> Result<Database, Error> {
let cache = RwLock::new(HashMap::new());
let inner = sled::Db::start_default(path)?;
let config = sled::ConfigBuilder::new().path(path).print_profile_on_drop(true).build();
let inner = sled::Db::start(config)?;
Ok(Database { cache, inner })
}