diff --git a/src/segment/block_index/writer.rs b/src/segment/block_index/writer.rs index d495f0d1..b2600a91 100644 --- a/src/segment/block_index/writer.rs +++ b/src/segment/block_index/writer.rs @@ -17,7 +17,7 @@ fn concat_files>(src_path: P, dest_path: P) -> crate::Result<()> let mut reader = BufReader::new(reader); let writer = OpenOptions::new() - .write(true) + .create(true) .append(true) .open(dest_path)?; diff --git a/src/snapshot.rs b/src/snapshot.rs index 99fe4747..656863a6 100644 --- a/src/snapshot.rs +++ b/src/snapshot.rs @@ -308,7 +308,7 @@ impl Snapshot { /// /// This operation scans the entire tree: O(n) complexity! /// - /// Never, under any circumstances, use .len() == 0 to check + /// Never, under any circumstances, use .`len()` == 0 to check /// if the snapshot is empty, use [`Snapshot::is_empty`] instead. /// /// # Examples diff --git a/src/tree.rs b/src/tree.rs index 7218ee68..7597a96d 100644 --- a/src/tree.rs +++ b/src/tree.rs @@ -317,7 +317,7 @@ impl Tree { /// /// This operation scans the entire tree: O(n) complexity! /// - /// Never, under any circumstances, use .len() == 0 to check + /// Never, under any circumstances, use .`len()` == 0 to check /// if the tree is empty, use [`Tree::is_empty`] instead. /// /// # Examples