Leak utility funtion now return immutable reference
This commit is contained in:
parent
fd5ee1420c
commit
57c1db59b2
1 changed files with 1 additions and 1 deletions
|
@ -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) )
|
Box :: leak ( Box :: new (inner) )
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue