From 35f1bb8ab270a523ba35c25adbd15af68108c2a2 Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Tue, 27 Aug 2024 16:14:36 +0800 Subject: [PATCH] fix: rust lint --- src/biz/user/user_init.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/biz/user/user_init.rs b/src/biz/user/user_init.rs index becb06f04..025c564c4 100644 --- a/src/biz/user/user_init.rs +++ b/src/biz/user/user_init.rs @@ -69,12 +69,12 @@ where // push the database record if object_type == CollabType::Database { - match &template_id { - TemplateObjectId::Database { - object_id: _, - database_id, - } => database_records.push((view_id, database_id.clone())), - _ => (), + if let TemplateObjectId::Database { + object_id: _, + database_id, + } = &template_id + { + database_records.push((view_id, database_id.clone())); } } }