From 363249dfc971b426e9d182114e240431c1c84116 Mon Sep 17 00:00:00 2001 From: Ron Kuris Date: Tue, 26 Nov 2024 11:27:43 -0800 Subject: [PATCH] Fixup docs and formatting --- storage/src/linear/filebacked.rs | 4 +--- storage/src/node/mod.rs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/storage/src/linear/filebacked.rs b/storage/src/linear/filebacked.rs index cfecaa77..4e98919f 100644 --- a/storage/src/linear/filebacked.rs +++ b/storage/src/linear/filebacked.rs @@ -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(); @@ -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(), diff --git a/storage/src/node/mod.rs b/storage/src/node/mod.rs index be426648..554b3f35 100644 --- a/storage/src/node/mod.rs +++ b/storage/src/node/mod.rs @@ -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: