Skip to content

Commit

Permalink
Fixup docs and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris committed Nov 26, 2024
1 parent 067aabb commit 363249d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions storage/src/linear/filebacked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ mod test {

#[test]
fn basic_reader_test() {

let mut tf = NamedTempFile::new().unwrap();
let path = tf.path().to_path_buf();
let output = tf.as_file_mut();
Expand Down Expand Up @@ -207,14 +206,13 @@ mod test {

#[test]
fn big_file() {

let mut tf = NamedTempFile::new().unwrap();
let path = tf.path().to_path_buf();
let output = tf.as_file_mut();
for _ in 0..1000 {
write!(output, "hello world").unwrap();
}

let fb = FileBacked::new(
path,
NonZero::new(10).unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion storage/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl Node {
/// The remaining bytes are in the following order:
/// - The partial path, possibly preceeded by the length if it is longer than 3 nibbles (varint encoded)
/// - The number of children, if the branch factor is 256
/// - The children. If the number of children == [Self::MAX_CHILDREN], then the children are just
/// - The children. If the number of children == [BranchNode::MAX_CHILDREN], then the children are just
/// addresses with hashes. Otherwise, they are offset, address, hash tuples.
///
/// For a leaf:
Expand Down

0 comments on commit 363249d

Please sign in to comment.