Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix clippy warnings
appflowy4fd9388b7970
diff --git a/backend/src/services/document/persistence.rs b/backend/src/services/document/persistence.rsindex 0552542a6f..b7b5ec4ffa 100644--- a/backend/src/services/document/persistence.rs+++ b/backend/src/services/document/persistence.rs@@ -5,19 +5,19 @@ use crate::{use anyhow::Context;use backend_service::errors::{internal_error, ServerError};use bytes::Bytes;-use flowy_collaboration::protobuf::{- CreateDocParams,- DocumentId,- DocumentInfo,- RepeatedRevision as RepeatedRevisionPB,- ResetDocumentParams,- Revision as RevisionPB,+use flowy_collaboration::{+ protobuf::{+ CreateDocParams,+ DocumentId,+ DocumentInfo,+ RepeatedRevision as RepeatedRevisionPB,+ ResetDocumentParams,+ Revision as RevisionPB,+ },+ sync::ServerDocumentManager,};use lib_ot::{core::OperationTransformable, rich_text::RichTextDelta};use protobuf::Message;--use flowy_collaboration::sync::ServerDocumentManager;-use lib_ot::core::trim;use std::sync::Arc;use uuid::Uuid;diff --git a/frontend/rust-lib/flowy-document/src/core/web_socket/web_socket.rs b/frontend/rust-lib/flowy-document/src/core/web_socket/web_socket.rsindex 3bb6a9b02c..f12d3611ee 100644--- a/frontend/rust-lib/flowy-document/src/core/web_socket/web_socket.rs+++ b/frontend/rust-lib/flowy-document/src/core/web_socket/web_socket.rs@@ -40,7 +40,6 @@ pub(crate) async fn make_document_ws_manager(let shared_sink = Arc::new(SharedWSSinkDataProvider::new(rev_manager.clone()));let ws_stream_consumer = Arc::new(DocumentWebSocketSteamConsumerAdapter {doc_id: doc_id.clone(),- user_id: user_id.clone(),edit_cmd_tx,rev_manager: rev_manager.clone(),shared_sink: shared_sink.clone(),@@ -79,7 +78,6 @@ fn listen_document_ws_state(pub(crate) struct DocumentWebSocketSteamConsumerAdapter {pub(crate) doc_id: String,- pub(crate) user_id: String,pub(crate) edit_cmd_tx: UnboundedSender<EditorCommand>,pub(crate) rev_manager: Arc<RevisionManager>,pub(crate) shared_sink: Arc<SharedWSSinkDataProvider>,diff --git a/shared-lib/lib-ot/src/core/delta/builder.rs b/shared-lib/lib-ot/src/core/delta/builder.rsindex 6031d3284a..03fcc964ca 100644--- a/shared-lib/lib-ot/src/core/delta/builder.rs+++ b/shared-lib/lib-ot/src/core/delta/builder.rs@@ -1,4 +1,4 @@-use crate::core::{trim, Attributes, Delta, Operation};+use crate::core::{trim, Attributes, Delta};pub struct DeltaBuilder<T: Attributes> {delta: Delta<T>,