diff --git a/libs/indexer/src/scheduler.rs b/libs/indexer/src/scheduler.rs index 3b18bc78..7c014f0a 100644 --- a/libs/indexer/src/scheduler.rs +++ b/libs/indexer/src/scheduler.rs @@ -256,7 +256,7 @@ impl IndexerScheduler { match collab_type { CollabType::Document => { let txn = collab.transact(); - let text = DocumentBody::from_collab(&collab) + let text = DocumentBody::from_collab(collab) .and_then(|body| body.to_plain_text(txn, false, true).ok()); if let Some(text) = text { diff --git a/services/appflowy-collaborate/src/group/group_init.rs b/services/appflowy-collaborate/src/group/group_init.rs index 617ef20e..e85b13a1 100644 --- a/services/appflowy-collaborate/src/group/group_init.rs +++ b/services/appflowy-collaborate/src/group/group_init.rs @@ -367,7 +367,7 @@ impl CollabGroup { .state .persister .indexer_scheduler - .index_collab_immediately(&workspace_id, &object_id, &collab, &collab_type) + .index_collab_immediately(workspace_id, object_id, &collab, collab_type) .await } diff --git a/tests/workspace/quick_note.rs b/tests/workspace/quick_note.rs index ddb650b9..d2bdc132 100644 --- a/tests/workspace/quick_note.rs +++ b/tests/workspace/quick_note.rs @@ -21,8 +21,8 @@ async fn quick_note_crud_test() { // To ensure that the creation time is different time::sleep(Duration::from_millis(1)).await; } - let quick_note_id_1 = quick_note_ids[0]; - let quick_note_id_2 = quick_note_ids[1]; + let _quick_note_id_1 = quick_note_ids[0]; + let _quick_note_id_2 = quick_note_ids[1]; let quick_notes = client .api_client .list_quick_notes(workspace_uuid, None, None, None)