@@ -776,7 +776,7 @@ impl DatabaseCollabService for WorkspaceDatabaseCollabServiceImpl {
776776 collab_type : CollabType ,
777777 encoded_collab : Option < ( EncodedCollab , bool ) > ,
778778 ) -> Result < Collab , DatabaseError > {
779- let object = self . build_collab_object ( object_id, collab_type. clone ( ) ) ?;
779+ let object = self . build_collab_object ( object_id, collab_type) ?;
780780 let data_source = if self . persistence . is_collab_exist ( object_id) {
781781 trace ! (
782782 "build collab: {}:{} from local encode collab" ,
@@ -796,7 +796,7 @@ impl DatabaseCollabService for WorkspaceDatabaseCollabServiceImpl {
796796 object_id,
797797 encoded_collab. is_none( ) ,
798798 ) ;
799- match self . get_encode_collab ( object_id, collab_type. clone ( ) ) . await {
799+ match self . get_encode_collab ( object_id, collab_type) . await {
800800 Ok ( Some ( encode_collab) ) => {
801801 info ! (
802802 "build collab: {}:{} with remote encode collab, {} bytes" ,
@@ -885,7 +885,7 @@ impl DatabaseCollabService for WorkspaceDatabaseCollabServiceImpl {
885885 . filter_map ( |object_id| {
886886 self
887887 . persistence
888- . get_encoded_collab ( object_id. as_str ( ) , collab_type. clone ( ) )
888+ . get_encoded_collab ( object_id. as_str ( ) , collab_type)
889889 . map ( |encoded_collab| ( object_id. clone ( ) , encoded_collab) )
890890 } )
891891 . collect ( ) ;
0 commit comments