allow let underscore use lint for rocksdb create cf for now
the workaround needs to be extended to rocksdb caches, but i dont know that part of code Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
a37b2b9e64
commit
0877ee6191
1 changed files with 5 additions and 1 deletions
|
@ -101,7 +101,11 @@ impl KeyValueDatabaseEngine for Arc<Engine> {
|
|||
// Create if it didn't exist
|
||||
debug!("Creating new column family in database: {}", name);
|
||||
|
||||
_ = self.rocks.create_cf(name, &self.opts);
|
||||
// TODO: the workaround for this needs to be extended to rocksdb caches, but i
|
||||
// dont know that code to safely do that
|
||||
#[allow(clippy::let_underscore_must_use)]
|
||||
#[allow(clippy::let_underscore_untyped)] // attributes on expressions are experimental
|
||||
let _ = self.rocks.create_cf(name, &self.opts);
|
||||
}
|
||||
|
||||
Ok(Arc::new(RocksDbEngineTree {
|
||||
|
|
Loading…
Add table
Reference in a new issue