From eb8a054d5ce2ab48994361f8887c5a96d799e663 Mon Sep 17 00:00:00 2001 From: Reinout Meliesie Date: Fri, 29 Nov 2024 21:06:43 +0100 Subject: [PATCH] More descriptive type var name for utility :: leak --- src/utility.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utility.rs b/src/utility.rs index d804f40..e6ad3d5 100644 --- a/src/utility.rs +++ b/src/utility.rs @@ -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) ) }