chore: fix clippy errors
This commit is contained in:
parent
824d60920d
commit
c94938ee46
|
|
@ -256,7 +256,7 @@ impl IndexerScheduler {
|
||||||
match collab_type {
|
match collab_type {
|
||||||
CollabType::Document => {
|
CollabType::Document => {
|
||||||
let txn = collab.transact();
|
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());
|
.and_then(|body| body.to_plain_text(txn, false, true).ok());
|
||||||
|
|
||||||
if let Some(text) = text {
|
if let Some(text) = text {
|
||||||
|
|
|
||||||
|
|
@ -367,7 +367,7 @@ impl CollabGroup {
|
||||||
.state
|
.state
|
||||||
.persister
|
.persister
|
||||||
.indexer_scheduler
|
.indexer_scheduler
|
||||||
.index_collab_immediately(&workspace_id, &object_id, &collab, &collab_type)
|
.index_collab_immediately(workspace_id, object_id, &collab, collab_type)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,8 @@ async fn quick_note_crud_test() {
|
||||||
// To ensure that the creation time is different
|
// To ensure that the creation time is different
|
||||||
time::sleep(Duration::from_millis(1)).await;
|
time::sleep(Duration::from_millis(1)).await;
|
||||||
}
|
}
|
||||||
let quick_note_id_1 = quick_note_ids[0];
|
let _quick_note_id_1 = quick_note_ids[0];
|
||||||
let quick_note_id_2 = quick_note_ids[1];
|
let _quick_note_id_2 = quick_note_ids[1];
|
||||||
let quick_notes = client
|
let quick_notes = client
|
||||||
.api_client
|
.api_client
|
||||||
.list_quick_notes(workspace_uuid, None, None, None)
|
.list_quick_notes(workspace_uuid, None, None, None)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue