Skip to content

Commit 1ebf258

Browse files
committed
remove last mentions of guts
1 parent 2303280 commit 1ebf258

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/io/mixed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub fn traverse_selected_rec(
229229
emit_data: bool,
230230
res: &mut Vec<EncodedItem>,
231231
) -> blake3::Hash {
232-
use blake3::guts::CHUNK_LEN;
232+
use blake3::CHUNK_LEN;
233233
if data.len() <= CHUNK_LEN {
234234
if emit_data && !query.is_empty() {
235235
res.push(
@@ -253,7 +253,7 @@ pub fn traverse_selected_rec(
253253
// for full ranges where the level is below min_level, we want to emit
254254
// just the data.
255255
//
256-
// todo: maybe call into blake3::guts::hash_subtree directly for this case? it would be faster.
256+
// todo: maybe call into blake3::hazmat::hash_subtree directly for this case? it would be faster.
257257
let full = query.is_all();
258258
let emit_parent = !query.is_empty() && (!full || level >= min_level);
259259
let hash_offset = if emit_parent {

src/rec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ pub(crate) fn encode_selected_rec(
105105
emit_data: bool,
106106
res: &mut Vec<u8>,
107107
) -> blake3::Hash {
108-
use blake3::guts::CHUNK_LEN;
108+
use blake3::CHUNK_LEN;
109109
if data.len() <= CHUNK_LEN {
110110
if emit_data && !query.is_empty() {
111111
res.extend_from_slice(data);
@@ -123,7 +123,7 @@ pub(crate) fn encode_selected_rec(
123123
// for full ranges where the level is below min_level, we want to emit
124124
// just the data.
125125
//
126-
// todo: maybe call into blake3::guts::hash_subtree directly for this case? it would be faster.
126+
// todo: maybe call into blake3::hazmat::hash_subtree directly for this case? it would be faster.
127127
let full = query.is_all();
128128
let emit_parent = !query.is_empty() && (!full || level >= min_level);
129129
let hash_offset = if emit_parent {
@@ -201,7 +201,7 @@ mod test_support {
201201
if ranges.is_empty() {
202202
return;
203203
}
204-
use blake3::guts::CHUNK_LEN;
204+
use blake3::CHUNK_LEN;
205205

206206
if size <= CHUNK_LEN {
207207
emit(BaoChunk::Leaf {

src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ fn outboard_wrong_hash() {
357357
// let is_root = false;
358358
// let data = make_test_data(len);
359359
// let expected = recursive_hash_subtree(start_chunk, &data, is_root);
360-
// let actual = blake3::guts::hash_subtree(start_chunk, &data, is_root);
360+
// let actual = blake3::hazmat::hash_subtree(start_chunk, &data, is_root);
361361
// assert_eq!(expected, actual);
362362
// }
363363

0 commit comments

Comments
 (0)