More descriptive type var name for utility :: leak

This commit is contained in:
Reinout Meliesie 2024-11-29 21:06:43 +01:00
parent 32c1d2ab67
commit eb8a054d5c
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

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