Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit 9c08792

Browse files
committed
into_boxed_str is stable
1 parent 8a0e3a2 commit 9c08792

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/tests.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub const EMPTY: *mut () = 0x1 as *mut ();
1515
mod unstable {
1616
extern crate alloc;
1717

18-
use heapsize::{HeapSizeOf, heap_size_of};
18+
use heapsize::heap_size_of;
1919
use std::os::raw::c_void;
2020

2121
#[repr(C, simd)]
@@ -91,12 +91,12 @@ mod unstable {
9191
let x = Box::new(OverAligned(0, 0, 0, 0));
9292
assert_eq!(unsafe { heap_size_of(&*x as *const _ as *const c_void) }, 32 + 32);
9393
}
94+
}
9495

95-
#[test]
96-
fn test_boxed_str() {
97-
let x = "raclette".to_owned().into_boxed_str();
98-
assert_eq!(x.heap_size_of_children(), 8);
99-
}
96+
#[test]
97+
fn test_boxed_str() {
98+
let x = "raclette".to_owned().into_boxed_str();
99+
assert_eq!(x.heap_size_of_children(), 8);
100100
}
101101

102102
#[test]

0 commit comments

Comments
 (0)