Skip to content

Commit 7fb1916

Browse files
authored
fix: space_name is static (#1744)
1 parent 96d59bc commit 7fb1916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/isolate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ impl HeapStatistics {
20312031
pub struct HeapSpaceStatistics(v8__HeapSpaceStatistics);
20322032

20332033
impl HeapSpaceStatistics {
2034-
pub fn space_name(&self) -> &CStr {
2034+
pub fn space_name(&self) -> &'static CStr {
20352035
unsafe { CStr::from_ptr(self.0.space_name_) }
20362036
}
20372037

0 commit comments

Comments
 (0)