MeiliSearch/meilidb-data/src/database/custom_settings.rs
2019-05-16 12:04:07 +02:00

14 lines
232 B
Rust

use std::sync::Arc;
use std::ops::Deref;
#[derive(Clone)]
pub struct CustomSettings(pub Arc<sled::Tree>);
impl Deref for CustomSettings {
type Target = sled::Tree;
fn deref(&self) -> &sled::Tree {
&self.0
}
}