Skip to content

Commit

Permalink
Add pub modifier to BumpWrapper.
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
DavidVonDerau committed Mar 19, 2021
1 parent edeb8f7 commit b29c892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ pub enum UnavailableMutError {
/// the `allocator-api` feature of the `bumpalo` crate.
#[cfg(feature = "bumpalo")]
#[derive(Clone, Copy, Debug)]
pub struct BumpWrapper<'a>(&'a bumpalo::Bump);
pub struct BumpWrapper<'a>(pub &'a bumpalo::Bump);

#[cfg(feature = "bumpalo")]
#[test]
Expand Down

0 comments on commit b29c892

Please sign in to comment.