Skip to content

Commit c94938e

Browse files
committed
chore: fix clippy errors
1 parent 824d609 commit c94938e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libs/indexer/src/scheduler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl IndexerScheduler {
256256
match collab_type {
257257
CollabType::Document => {
258258
let txn = collab.transact();
259-
let text = DocumentBody::from_collab(&collab)
259+
let text = DocumentBody::from_collab(collab)
260260
.and_then(|body| body.to_plain_text(txn, false, true).ok());
261261

262262
if let Some(text) = text {

services/appflowy-collaborate/src/group/group_init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ impl CollabGroup {
367367
.state
368368
.persister
369369
.indexer_scheduler
370-
.index_collab_immediately(&workspace_id, &object_id, &collab, &collab_type)
370+
.index_collab_immediately(workspace_id, object_id, &collab, collab_type)
371371
.await
372372
}
373373

tests/workspace/quick_note.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ async fn quick_note_crud_test() {
2121
// To ensure that the creation time is different
2222
time::sleep(Duration::from_millis(1)).await;
2323
}
24-
let quick_note_id_1 = quick_note_ids[0];
25-
let quick_note_id_2 = quick_note_ids[1];
24+
let _quick_note_id_1 = quick_note_ids[0];
25+
let _quick_note_id_2 = quick_note_ids[1];
2626
let quick_notes = client
2727
.api_client
2828
.list_quick_notes(workspace_uuid, None, None, None)

0 commit comments

Comments
 (0)