Skip to content

Commit

Permalink
fix: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
darkskygit committed Dec 20, 2023
1 parent bda1fa9 commit 618e6b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions y-octo-utils/bin/doc_merger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ fn jwst_merge(path: &str) {
let mut doc = Doc::default();
for (i, update) in updates.iter().enumerate() {
println!("apply update{i} {} bytes", update.len());
doc.apply_update_from_binary(update.clone()).unwrap();
doc.apply_update_from_binary_v1(update.clone()).unwrap();
}

println!("press enter to continue");
Expand All @@ -81,7 +81,7 @@ fn jwst_merge(path: &str) {

{
let mut doc = Doc::default();
doc.apply_update_from_binary(binary.clone()).unwrap();
doc.apply_update_from_binary_v1(binary.clone()).unwrap();
let new_binary = doc.encode_update_v1().unwrap();

println!("re-encoded {} bytes", new_binary.len(),);
Expand Down
2 changes: 1 addition & 1 deletion y-octo/src/doc/types/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl<'a> Iterator for EntriesInnerIterator<'a> {
for (k, v) in iter {
if let Some(item) = v.get() {
if !item.deleted() {
return Some((&k.as_str(), item));
return Some((k.as_str(), item));
}
}
}
Expand Down

0 comments on commit 618e6b9

Please sign in to comment.