Skip to content

Commit

Permalink
refactor: clippy fix
Browse files Browse the repository at this point in the history
new clippy rule broke ci
  • Loading branch information
marvin-j97 committed Feb 13, 2024
1 parent 0d36043 commit 8be32fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/segment/block_index/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn concat_files<P: AsRef<Path>>(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)?;
Expand Down
2 changes: 1 addition & 1 deletion src/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8be32fb

Please sign in to comment.