Skip to content

Commit 4f5ab36

Browse files
committed
make ItemSliceSend and Node only crate-visible
`ItemSliceSend` still has the unsafe `Clone` implementation, so let's not make it public. That also matches the visibility of most types in `resolve.rs` (which is the only place these types are used).
1 parent 6e5ef3b commit 4f5ab36

File tree

1 file changed

+2
-2
lines changed
  • gix-pack/src/cache/delta/traverse

1 file changed

+2
-2
lines changed

gix-pack/src/cache/delta/traverse/util.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::marker::PhantomData;
22

33
use crate::cache::delta::Item;
44

5-
pub struct ItemSliceSend<'a, T>
5+
pub(crate) struct ItemSliceSend<'a, T>
66
where
77
T: Send,
88
{
@@ -41,7 +41,7 @@ where
4141
unsafe impl<T> Send for ItemSliceSend<'_, T> where T: Send {}
4242

4343
/// An item returned by `iter_root_chunks`, allowing access to the `data` stored alongside nodes in a [`Tree`].
44-
pub struct Node<'a, T: Send> {
44+
pub(crate) struct Node<'a, T: Send> {
4545
pub item: &'a mut Item<T>,
4646
pub child_items: ItemSliceSend<'a, Item<T>>,
4747
}

0 commit comments

Comments
 (0)