mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-24 05:44:25 +01:00
14 lines
232 B
Rust
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
|
||
|
}
|
||
|
}
|