fix warnings
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
use crate::{
|
||||
utils::{VersionBytes, VersionBytesRef},
|
||||
CoreSubHandle, Info, KeyCryptor, Storage,
|
||||
CoreSubHandle, Info,
|
||||
};
|
||||
use anyhow::Result;
|
||||
use async_trait::async_trait;
|
||||
use crdts::{CmRDT, CvRDT, MVReg};
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
use std::{fmt::Debug, sync::Arc};
|
||||
use crdts::MVReg;
|
||||
use std::fmt::Debug;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[async_trait]
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
use crate::{
|
||||
utils::{VersionBytes, VersionBytesRef},
|
||||
CoreSubHandle, Cryptor, Info, Storage,
|
||||
CoreSubHandle, Info,
|
||||
};
|
||||
use anyhow::Result;
|
||||
use async_trait::async_trait;
|
||||
use crdts::{CmRDT, CvRDT, MVReg, Orswot};
|
||||
use serde::{de::DeserializeOwned, Deserialize, Serialize};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{
|
||||
borrow::Borrow,
|
||||
cmp::{Eq, Ord, Ordering, PartialEq},
|
||||
convert::Infallible,
|
||||
fmt::Debug,
|
||||
hash::{Hash, Hasher},
|
||||
sync::Arc,
|
||||
};
|
||||
use uuid::Uuid;
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ use async_trait::async_trait;
|
||||
use crdts::{CmRDT, CvRDT, MVReg, VClock};
|
||||
use dyn_clone::DynClone;
|
||||
use futures::{
|
||||
future::BoxFuture,
|
||||
lock::Mutex as AsyncMutex,
|
||||
stream::{self, StreamExt, TryStreamExt},
|
||||
};
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
use crate::{utils::VersionBytes, CoreSubHandle, Cryptor, Info, KeyCryptor};
|
||||
use crate::{utils::VersionBytes, CoreSubHandle, Info};
|
||||
use anyhow::Result;
|
||||
use async_trait::async_trait;
|
||||
use crdts::{CmRDT, CvRDT, MVReg};
|
||||
use serde::{de::DeserializeOwned, Serialize};
|
||||
use std::{fmt::Debug, sync::Arc};
|
||||
use crdts::MVReg;
|
||||
use std::fmt::Debug;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[async_trait]
|
||||
|
||||
@@ -14,7 +14,7 @@ impl CmRDT for EmptyCrdt {
|
||||
|
||||
type Validation = Infallible;
|
||||
|
||||
fn validate_op(&self, op: &Self::Op) -> Result<(), Infallible> {
|
||||
fn validate_op(&self, _op: &Self::Op) -> Result<(), Infallible> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user