fix: cargo clippy

This commit is contained in:
Zack Fu Zi Xiang 2024-09-17 22:55:10 +08:00
parent 143557e29c
commit 204858f514
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ impl PublishCollabDuplicator {
new_db_view_ids.push(new_db_view_id);
}
// if there is no main view id, use the inline view id
if let None = self.duplicated_db_main_view.get(&pub_db_id) {
if !self.duplicated_db_main_view.contains_key(&pub_db_id) {
self
.duplicated_db_main_view
.insert(pub_db_id.clone(), db_body.get_inline_view_id(&txn));