mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix clippy warnings
This commit is contained in:
parent
a488944d2c
commit
4fd9388b79
@ -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;
|
||||
|
||||
|
@ -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>,
|
||||
|
@ -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>,
|
||||
|
Loading…
Reference in New Issue
Block a user