From 836e91ce4c1b38b2f7bff8ebcc38b119edea3022 Mon Sep 17 00:00:00 2001 From: est31 Date: Fri, 26 Jun 2020 19:51:47 +0200 Subject: [PATCH] Make leak function private The leak function is never used outside of interning.rs and I don't think it makes any sense to use it. --- src/cargo/util/interning.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/util/interning.rs b/src/cargo/util/interning.rs index 942869ac70b..bbec1294269 100644 --- a/src/cargo/util/interning.rs +++ b/src/cargo/util/interning.rs @@ -11,7 +11,7 @@ use std::ptr; use std::str; use std::sync::Mutex; -pub fn leak(s: String) -> &'static str { +fn leak(s: String) -> &'static str { Box::leak(s.into_boxed_str()) }