make clippy happy

This commit is contained in:
JimChenWYU
2024-09-23 16:27:33 +08:00
parent 3bc98eec16
commit 20ba112bd8
2 changed files with 14 additions and 29 deletions
+1 -1
View File
@@ -1,3 +1,4 @@
#![allow(clippy::map_entry)]
use std::{collections::HashMap, sync::Arc};
use futures::future::join_all;
@@ -209,7 +210,6 @@ impl StorageAPI for Sets {
for (i, obj) in objects.iter().enumerate() {
let idx = self.get_hashed_set_index(obj.object_name.as_str());
#[allow(clippy::map_entry)]
if !set_obj_map.contains_key(&idx) {
set_obj_map.insert(
idx,