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.
This commit is contained in:
est31 2020-06-26 19:51:47 +02:00
parent 7f73a6c782
commit 836e91ce4c

View File

@ -11,7 +11,7 @@ use std::ptr;
use std::str; use std::str;
use std::sync::Mutex; use std::sync::Mutex;
pub fn leak(s: String) -> &'static str { fn leak(s: String) -> &'static str {
Box::leak(s.into_boxed_str()) Box::leak(s.into_boxed_str())
} }