Skip to content

Commit f937b96

Browse files
committed
Fix Box::leak should be public
1 parent e2994d0 commit f937b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stable/boxed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ impl<T: ?Sized, A: Allocator> Box<T, A> {
12161216
/// assert_eq!(*static_ref, [4, 2, 3]);
12171217
/// ```
12181218
#[inline(always)]
1219-
fn leak<'a>(b: Self) -> &'a mut T
1219+
pub fn leak<'a>(b: Self) -> &'a mut T
12201220
where
12211221
A: 'a,
12221222
{

0 commit comments

Comments
 (0)