Skip to content

Commit

Permalink
chore: fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Horusiath committed Dec 27, 2024
1 parent 824d609 commit c94938e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/indexer/src/scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion services/appflowy-collaborate/src/group/group_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions tests/workspace/quick_note.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c94938e

Please sign in to comment.