chore: fix clippy errors

This commit is contained in:
Bartosz Sypytkowski 2024-12-27 07:52:10 +01:00
parent 824d60920d
commit c94938ee46
3 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -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
}

View File

@ -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)