Leak utility funtion now return immutable reference

This commit is contained in:
Reinout Meliesie 2024-11-20 17:17:35 +01:00
parent fd5ee1420c
commit 57c1db59b2
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -1,3 +1,3 @@
pub fn leak < 'l , T > ( inner : T ) -> & 'l mut T {
pub fn leak < 'l , T > ( inner : T ) -> & 'l T {
Box :: leak ( Box :: new (inner) )
}