mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-03-11 06:26:13 +03:00
Fix warnings in database::abstraction
This commit is contained in:
parent
13a48c4577
commit
c6277c72a1
1 changed files with 4 additions and 4 deletions
|
@ -23,12 +23,12 @@ pub trait DatabaseEngine: Send + Sync {
|
||||||
where
|
where
|
||||||
Self: Sized;
|
Self: Sized;
|
||||||
fn open_tree(&self, name: &'static str) -> Result<Arc<dyn Tree>>;
|
fn open_tree(&self, name: &'static str) -> Result<Arc<dyn Tree>>;
|
||||||
fn flush(self: &Self) -> Result<()>;
|
fn flush(&self) -> Result<()>;
|
||||||
fn cleanup(self: &Self) -> Result<()> {
|
fn cleanup(&self) -> Result<()> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
fn memory_usage(self: &Self) -> Result<String> {
|
fn memory_usage(&self) -> Result<String> {
|
||||||
Ok("Current database engine does not support memory usage reporting.".to_string())
|
Ok("Current database engine does not support memory usage reporting.".to_owned())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue