From b29c892ad12f976aa34d6baf0eb5662d9be1a7e1 Mon Sep 17 00:00:00 2001 From: David Von Derau Date: Thu, 18 Mar 2021 21:25:56 -0700 Subject: [PATCH] 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 ``` --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index af3c3a44e0..b2d6584ff3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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]