From 0877ee619115562c8b8f102a049f77f733a67ea9 Mon Sep 17 00:00:00 2001 From: strawberry Date: Fri, 24 May 2024 17:54:26 -0400 Subject: [PATCH] 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 --- src/database/rocksdb/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/database/rocksdb/mod.rs b/src/database/rocksdb/mod.rs index 1b7077fc..5198e6b7 100644 --- a/src/database/rocksdb/mod.rs +++ b/src/database/rocksdb/mod.rs @@ -101,7 +101,11 @@ impl KeyValueDatabaseEngine for Arc { // 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 {