Skip to content

Commit b29c892

Browse files
committed
Add pub modifier to BumpWrapper.
Without this change, I'm seeing the following error when trying to use the `BumpWrapper` feature in my own code. ``` error[E0423]: cannot initialize a tuple struct which contains private fields | | HashSet::new_in(BumpWrapper(arena)) | ^^^^^^^^^^^ constructor is not visible here due to private fields ```
1 parent edeb8f7 commit b29c892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub enum UnavailableMutError {
149149
/// the `allocator-api` feature of the `bumpalo` crate.
150150
#[cfg(feature = "bumpalo")]
151151
#[derive(Clone, Copy, Debug)]
152-
pub struct BumpWrapper<'a>(&'a bumpalo::Bump);
152+
pub struct BumpWrapper<'a>(pub &'a bumpalo::Bump);
153153

154154
#[cfg(feature = "bumpalo")]
155155
#[test]

0 commit comments

Comments
 (0)