mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-02 11:06:14 +00:00
chore: cargo fix
This commit is contained in:
parent
42cc347be4
commit
50c7a827c9
3 changed files with 6 additions and 8 deletions
|
@ -1,5 +1,3 @@
|
|||
use std::pin::Pin;
|
||||
|
||||
use loro_core::{id::ClientID, LoroCore};
|
||||
|
||||
use crate::raw_store::RawStore;
|
||||
|
|
|
@ -45,14 +45,14 @@ impl HasLength for ChangeData {
|
|||
}
|
||||
|
||||
impl Mergable for ChangeData {
|
||||
fn is_mergable(&self, other: &Self, conf: &()) -> bool
|
||||
fn is_mergable(&self, _other: &Self, _conf: &()) -> bool
|
||||
where
|
||||
Self: Sized,
|
||||
{
|
||||
false
|
||||
}
|
||||
|
||||
fn merge(&mut self, other: &Self, conf: &())
|
||||
fn merge(&mut self, _other: &Self, _conf: &())
|
||||
where
|
||||
Self: Sized,
|
||||
{
|
||||
|
|
|
@ -27,7 +27,7 @@ impl RawStore {
|
|||
unimplemented!()
|
||||
}
|
||||
|
||||
pub fn verify(&mut self, pub_key: &[u8; 32]) -> bool {
|
||||
pub fn verify(&mut self, _pub_key: &[u8; 32]) -> bool {
|
||||
if !self.maced() {
|
||||
return true;
|
||||
}
|
||||
|
@ -37,7 +37,7 @@ impl RawStore {
|
|||
}
|
||||
|
||||
self.calc_hash();
|
||||
for (clientId, mac) in self.macs.as_ref().unwrap().iter() {
|
||||
for (_clientId, _mac) in self.macs.as_ref().unwrap().iter() {
|
||||
todo!("pending");
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ impl RawStore {
|
|||
}
|
||||
|
||||
fn calc_hash(&mut self) {
|
||||
for (client_id, changes) in &mut self.changes {
|
||||
for (_client_id, changes) in &mut self.changes {
|
||||
let changes = changes.vec_mut();
|
||||
let mut start_index = 0;
|
||||
for i in (0..changes.len()).rev() {
|
||||
|
@ -80,7 +80,7 @@ impl RawStore {
|
|||
version_vector
|
||||
}
|
||||
|
||||
pub fn sign(&self, pub_key: ()) {
|
||||
pub fn sign(&self, _pub_key: ()) {
|
||||
unimplemented!()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue