Skip to content

Commit

Permalink
Merge pull request #143 from cloudpeers/update-rkyv
Browse files Browse the repository at this point in the history
Minor rkyv version update...
  • Loading branch information
rklaehn authored Jan 31, 2022
2 parents 0cc5193 + 513c959 commit eb66d7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crdt/src/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Docs {
pub fn docs(&self) -> impl Iterator<Item = Result<DocId>> + '_ {
self.0.iter().filter_map(|(k, _)| {
if k[32] == 1 {
Some(Ok(DocId::new((&k[..32]).try_into().unwrap())))
Some(Ok(DocId::new(k[..32].try_into().unwrap())))
} else {
None
}
Expand All @@ -76,7 +76,7 @@ impl Docs {
pub fn keys(&self) -> impl Iterator<Item = Result<PeerId>> + '_ {
self.0.iter().filter_map(|(k, _)| {
if k[32] == 2 {
Some(Ok(PeerId::new((&k[..32]).try_into().unwrap())))
Some(Ok(PeerId::new(k[..32].try_into().unwrap())))
} else {
None
}
Expand Down
2 changes: 1 addition & 1 deletion crdt/src/radixdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl Fallible for SharedSerializeMap2 {
}

impl SharedSerializeRegistry for SharedSerializeMap2 {
fn get_shared_ptr(&mut self, value: *const u8) -> Option<usize> {
fn get_shared_ptr(&self, value: *const u8) -> Option<usize> {
self.shared_resolvers.get(&value).copied()
}

Expand Down

0 comments on commit eb66d7d

Please sign in to comment.